This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

VR Rotation to Rotation Matrix

Convert axis/angle rotation to rotation matrix

  • Library:
  • Simulink 3D Animation / Utilities

Description

The VR Rotation to Rotation Matrix block converts the axis / angle rotation representation used for defining rotations in virtual reality to a 3-by-3 rotation matrix

Ports

Input

expand all

Input rotation, specified as a 4-element vector in axis/angle notation,. The first three elements specify the axis of rotation and the fourth element specifies the angle.

Data Types: single | double

Output

expand all

3D rotation, returned as a 3-by-3 columnwise defined matrix, also known as a direction cosine matrix.

A representation of a three-dimensional spherical rotation as a 3-by-3 real, orthogonal matrix R: RTR = RRT = I, where I is the 3-by-3 identity and RT is the transpose of R. This matrix is also known as the direction cosine matrix (DCM). The DCM is the orientation of the object in space, relative to its parent node.

R=(R11R12R13R21R22R23R31R32R33)=(RxxRxyRxzRyxRyyRyzRzxRzyRzz)

Data Types: single | double

Parameters

expand all

Input is considered to be zero if it is equal to, or lower than, this value. By default, the parameter is set to ε = 1e-12.

Introduced in R2019a