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

  • image (bool, optional) – Create a transformation matrix for an image, assuming the (0,1,2) dimensions correspond to (z,y,x) by default False.

Returns:

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

Return type:

np.ndarray