Houdini 20.5 Nodes APEX nodes

quaternion::FromMatrix<T>

Converts a rotation matrix into a unit quaternion.

On this page
Since 20.0

Converts a rotation matrix into a unit quaternion. If the matrix is not a valid rotation matrix, the identity rotation matrix is used as the matrix to convert to a quaternion.

If the matrix is a 4×4 matrix, the upper left 3×3 part of the matrix is extracted as the rotation matrix.

Inputs

matrix: Matrix3, Matrix4

The input matrix.

Outputs

quaternion: Vector4

The unit quaternion converted from the rotation matrix.

See also

APEX nodes