quaternion

fun quaternion(m: Mat4): Quaternion

Get the Quaternion from a rotation Matrix

Parameters

m

The rotation matrix. Don't forget to extract the rotation with rotation if it's transposed

Sources

common source
Link copied to clipboard