Cross Product

Cross product of two 3-D vectors

  • Library:
  • Simulink 3D Animation / Utilities

  • Cross Product block

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

Introduced in R2006a