Get Rotation Quaternion

Gets the rotation of the given matrix or rotation angles value which represents a linear transformation. Returns the quaternion orientation component.

Installation

To use this node enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Descripton

Default

Input (inputs:matrix)

['matrixd[3]', 'matrixd[3][]', 'matrixd[4]', 'matrixd[4][]', 'vectord[3]', 'vectord[3][]', 'vectorf[3]', 'vectorf[3][]', 'vectorh[3]', 'vectorh[3][]']

The matrix or rotation angles to extract the quaternion from.

None

Rotation Order (inputs:rotationOrder)

token

The order the rotation should be applied when using rotation angles.

XYZ

Metadata

allowedTokens = XYZ,XZY,YXZ,YZX,ZXY,ZYX

Outputs

Name

Type

Descripton

Default

Orientation (outputs:quaternion)

['quatd[4]', 'quatd[4][]', 'quatf[4]', 'quatf[4][]', 'quath[4]', 'quath[4][]']

The quaternion representing the orientation of the transformation.

None

Metadata

Name

Value

Unique ID

omni.graph.nodes.GetMatrix4Quaternion

Version

2

Extension

omni.graph.nodes

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Get Rotation Quaternion

Categories

math:operator

Generated Class Name

OgnGetMatrix4QuaternionDatabase

Python Module

omni.graph.nodes