mymesh.register.rotation#
- mymesh.register.rotation(x, center=array([0, 0, 0]), rotation_order=[0, 1, 2], rotation_mode='cartesian', image=False)[source]#
Rigid rotation in 3D.
- Parameters:
x (list) – 3 item list, containing the x, y, and z rotations
[alpha, beta, gamma], where angles are specified in radians.center (list or np.ndarary, optional) – Reference point for the rotation
rotation_order (array_like, optional) – Order to perform rotations about the x (0), y (1), and z (2) axes, by default [0,1,2]
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=(4,4))
- Return type:
np.ndarray