Main Content


(To be removed) Convert viewpoint orientation to direction

vrori2dir will be removed in a future release. For more information, see Version History.




vrori2dir(r) converts the viewpoint orientation, specified by a rotation vector, r, to a direction the viewpoint points to.

vrori2dir(r,options) converts the viewpoint orientation with the default algorithm parameters replaced by values defined in options.

The options structure contains the parameter epsilon that represents the value below which a number will be treated as zero (default value is 1e-12).

Version History

Introduced in R2007b

collapse all

R2023b: To be removed

The vrori2dir will be removed in a future release. Instead, use sim3d classes and Simulation 3D blocks to interface MATLAB® and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Create 3D Simulations in Unreal Engine Environment.