メインコンテンツ

Rotation Between 2 Vectors

R2026b

(Removed) Virtual world rotation between two 3-D vectors

Rotation Between 2 Vectors has been removed. 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

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/Rotation Between 2 Vectors"

Example: add_block("vrlib/Utilities/Rotation Between 2 Vectors","myModel/myBlock",MakeNameUnique="on")

Extended Capabilities

expand all

Version History

Introduced in R2006a

expand all