Main Content

Rotation Between 2 Vectors

(To be removed) Virtual world rotation between two 3-D vectors

Rotation Between 2 Vectors will be removed in a future release. For more information, see Version History.

  • Rotation Between 2 Vectors block

Libraries:
Simulink 3D Animation / Utilities

Description

The Rotation Between 2 Vectors takes the input of two 3-by-1 vectors and returns a virtual world rotation (specified as a 4-element vector defining the axis and angle) that is needed to transform the first input vector to the second input vector.

Ports

Input

expand all

The input signal is a 3-element vector whose elements correspond to its magnitudes along the i^,j^,k^ unit vectors, respectively.

Data Types: double

The input signal is a 3- element vector whose elements correspond to its magnitudes along the i^,j^,k^ unit vectors, respectively.

Data Types: double

Output

expand all

The output of the block is an axis-angle representation of the rotation needed to transform the first input vector to the second input vector.

Data Types: double

Extended Capabilities

Version History

Introduced in R2006a

collapse all

R2023b: To be removed

The Rotation Between 2 Vectors 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.