quaternion

Extracts a unit Quaternion from a rotation Mat4.

Return

a normalized Quaternion representing the same rotation

Parameters

m

the rotation matrix to convert; must be a pure rotation (no scale or shear)