mymesh.register.rotation2d#

mymesh.register.rotation2d(x, center=array([0, 0]))[source]#

Rigid rotation in 2D.

Parameters:
  • x (array_like) – 1 item list, containing the rotation [theta], where angles are specified in radians.

  • center (list or np.ndarary, optional) – Reference point for the rotation

Returns:

A – Affine rotation matrix (shape=(3,3))

Return type:

np.ndarray