Get Rotation

Gets the rotation of the given matrix3d, matrix4d or quaternion value which represents a linear transformation. Returns the vector3 rotation in the given rotation order

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][]', 'quatd[4]', 'quatd[4][]', 'quatf[4]', 'quatf[4][]', 'quath[4]', 'quath[4][]']

The matrix or quaternion to extract the rotation from.

None

Rotation Order (inputs:rotationOrder)

token

The order of the output rotation angles.

XYZ

Metadata

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

Outputs

Name

Type

Descripton

Default

Rotation (outputs:rotation)

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

The vector representing the rotation of the transformation.

None

Metadata

Name

Value

Unique ID

omni.graph.nodes.GetMatrix4Rotation

Version

2

Extension

omni.graph.nodes

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Get Rotation

Categories

math:operator

Generated Class Name

OgnGetMatrix4RotationDatabase

Python Module

omni.graph.nodes