Houdini 20.0 Nodes APEX Nodes

quaternion::FromMatrix<T>

Converts a rotation matrix into a unit quaternion.

On this page
Since 20.0

If the matrix is not a valid rotation matrix, the identity rotation is returned. If the given matrix is a 4×4 matrix, the top left 3×3 part of the matrix is extracted as the rotation matrix.

Inputs

matrix: Matrix3, Matrix4

Outputs

quaternion: Vector4

APEX Nodes