Viewpoint Direction to VR Orientation

Convert viewpoint direction to virtual world orientation

  • Library:
  • Simulink 3D Animation / Utilities

  • Viewpoint Direction to VRML Orientation block


The Viewpoint Direction to VR Orientation takes a viewpoint direction (a 3 element vector) as input and outputs the corresponding virtual world viewpoint orientation (a 4-element rotation vector).

To open the Block Parameters dialog box, double-click the block.



expand all

Viewpoint direction, specified as a 3-element vector.

Data Types: single | double


expand all

Output rotation, returned 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.

Extended Capabilities

Introduced in R2006a