Contenuto principale

Viewpoint Direction to VR Orientation

R2026b

(Removed) Convert viewpoint direction to virtual world orientation

Viewpoint Direction to VR Orientation has been removed. For more information, see Version History.

  • Viewpoint Direction to VRML Orientation block

Libraries:
Simulink 3D Animation / Utilities

Description

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.

Ports

Input

expand all

Viewpoint direction, specified as a 3-element vector.

Data Types: single | double

Output

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.

Programmatic Use: Add Block

To add the block programmatically, use the add_block function with one of these library block paths as the source.

"vrlib/Utilities/Viewpoint Direction to VR Orientation"

Example: add_block("vrlib/Utilities/Viewpoint Direction to VR Orientation","myModel/myBlock",MakeNameUnique="on")

Extended Capabilities

expand all

Version History

Introduced in R2006a

expand all