quaternion_to_rotation_matrix# quaternion_to_rotation_matrix(quaternions)[source]# Convert quaternions to rotation matrices. Parameters: quaternionsNDArrayQuaternion data of shape (n, 4). Returns: NDArrayRotation matrices corresponding to the given quaternions.