Encodes rotation from a matrix into a quaternion.
The 4x4 rotation matrix.
The resulting quaternion (default is created if not provided).
The quaternion representing the matrix's rotation.
Encodes rotation from a matrix into a quaternion.