Main Content

vrdir2ori

(To be removed) Convert viewpoint direction to orientation

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

Syntax

vrdir2ori(d)
vrdir2ori(d,options)

Description

vrdir2ori(d) converts the viewpoint direction, specified by a vector of three elements, to an appropriate orientation (virtual world rotation vector).

vrdir2ori(d,options) converts the viewpoint direction 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 vrdir2ori 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.