Rotate Vector

Rotates a 3d direction vector by a specified rotation. Accepts 3x3 matrices, 4x4 matrices, euler angles (XYZ), or quaternions For 4x4 matrices, the transformation information in the matrix is ignored and the vector is treated as a 4-component vector where the fourth component is zero. The result is then projected back to a 3-vector. Supports mixed array inputs, eg a single quaternion and an array of vectors.

Installation

To use this Node, you must enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Description

Default

Rotation (rotation)

matrixd[4], matrixd[4][], matrixd[3], matrixd[3][], vectord[3], vectord[3][], vectorf[3], vectorf[3][], vectorh[3], vectorh[3][], quatd[4], quatd[4][], quatf[4], quatf[4][], quath[4], quath[4][]

The rotation to be applied

Vector (vector)

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

The row vector(s) to be rotated

Outputs

Name

Type

Description

Default

Result (result)

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

The transformed row vector(s)