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.
Simulink 3D Animation / Utilities
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.
Port 1 — Input signal
The input signal is a 3-element vector whose elements correspond to its magnitudes along the unit vectors, respectively.
Port 2 — Input signal
The input signal is a 3- element vector whose elements correspond to its magnitudes along the unit vectors, respectively.
Output 1 — Axis-Angle rotation
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.
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Actual data type or capability support depends on block implementation.
Version HistoryIntroduced in R2006a
R2023b: To be removed
The Rotation Between 2 Vectors block will be removed in a future
release. Instead, use
sim3d classes and Simulation 3D
blocks in Unreal Engine Scenario Applications to
interface MATLAB® and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Get Started Creating Virtual World with Actors.