mne.transforms.quat_to_rot#

mne.transforms.quat_to_rot(quat)[source]#

Convert a set of quaternions to rotations.

Parameters
quatarray, shape (…, 3)

The q1, q2, and q3 (x, y, z) parameters of a unit quaternion.

Returns
rotarray, shape (…, 3, 3)

The corresponding rotation matrices.

See also

rot_to_quat