pyCGM2.Model.frame.quaternion_TO_rotationMatrix#

pyCGM2.Model.frame.quaternion_TO_rotationMatrix(quaternion: ndarray) ndarray#

Converts a quaternion to a rotation matrix.

Parameters:

quaternion (np.ndarray) – A 4-element array representing a quaternion.

Returns:

np.ndarray – Rotation matrix representation of the quaternion.