Tools¶
Tools, functions and other funny things
-
pymoskito.tools.
rotation_matrix_xyz
(axis, angle, angle_dim)[source]¶ Calculate the rotation matrix for a rotation around a given axis with the angle .
Parameters: - axis (str) – choose rotation axis “x”, “y” or “z”
- angle (int or float) – rotation angle
- angle_dim (str) – choose “deg” for degree or “rad” for radiant
Returns: rotation matrix
Return type: numpy.ndarray