Overview | Statement List | Example


Cross Product of Two Vectors

Synopsis

CROSSF(vector1,vector2)

Description

Returns the cross product of two vectors. Using the function as shown below, where A and B are arrays, each consisting of the three components of a vector,

NUMBER/A(3),B(3),C(3)

C=CROSSF(A,B)

is equivalent to the following expressions:

C(1) = A(2)*B(3)-A(3)*B(2)

C(2) = -(A(1)*B(3)-A(3)*B(1))

C(3) = A(1)*B(2)-A(2)*B(1)

Parameters

Parameter

Description

vector1,vector2

Two-, three-position numerical arrays which represents the components of vectors.