toQuaternion Method

convert the matrix to a quaternion.

toQuaternion(): Point4d

note This calculation requires the matrix to have unit length rows and columns. WARNING: There is frequent confusion over whether a "from quaternion" matrix is organized by rows and columns. WARNING: If you find that the matrix seems to rotate by the opposite angle expect it, transpose it.

Defined in

Last Updated: 08 January, 2020