Documentation Center

  • Trials
  • Product Updates

Quaternion Rotation

Rotate vector by quaternion


Utilities/Math Operations


The Quaternion Rotation block rotates a vector by a quaternion.

The quaternion has the form of

The vector has the form of

The rotated vector has the form of

Dialog Box

Inputs and Outputs

InputDimension TypeDescription


Quaternion or vectorContains quaternions in the form of [q0, r0, ..., q1, r1, ... , q2, r2, ... , q3, r3, ...].


VectorContains vector or vector of vectors in the form of [v1, u1, ... , v2, u2, ... , v3, u3, ...].

OutputDimension TypeDescription


Rotated quaternion or vectorContains rotated vector or vector of rotated vectors.

Was this topic helpful?