quaternion_to_rotation_matrix#

quaternion_to_rotation_matrix(quaternions)[source]#

Convert quaternions to rotation matrices.

Parameters:
quaternionsNDArray

Quaternion data of shape (n, 4).

Returns:
NDArray

Rotation matrices corresponding to the given quaternions.