HyperMath

Cross

Cross

Previous topic Next topic No expanding text in this topic  

Cross

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The cross product.

Syntax

c = Cross(vec1, vec2)

Arguments

Name

Description

 

vec1

A 3 element vector.

 

vec2

A 3 element vector.

Output

Name

Description

 

c

The cross product of the two vectors.

Example

Find the cross product of two vectors:

 

Syntax

 

C = Cross([1,2,3],[4,5,6])

 

Result

 

C = -3 6 -3

Comments

The result is a vector normal to both input vectors. If they are parallel, then the output is a zero vector.

See Also:

Dot