Main Content

Cross Product

(To be removed) Cross product of two 3-D vectors

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

  • Cross Product block

Libraries:
Simulink 3D Animation / Utilities

Description

Return the cross product–or vector product–of two 3-by-1 vectors. Each input is a vector of the form a1i^+a2j^+a3k^ where i, j, and k are unit vectors parallel to the x, y, and z coordinate axes. The output vector y=a×b is a 3 element vector orthogonal to the input vectors a and b.

Ports

Input

expand all

Input vector a, where the elements represent the magnitude of the vector parallel to the x, y, and z coordinate axes.

Data Types: double

Input vector b, where the elements represent the magnitude of the vector parallel to the x, y, and z coordinate axes.

Data Types: double

Output

expand all

Output vector y=a×b, which is orthogonal to a and b.

Data Types: double

Extended Capabilities

Version History

Introduced in R2006a

collapse all

R2023b: To be removed

The Cross Product 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.