cross

 
 
 

Returns the cross product of two vectors.

For two vectors, the cross product returns the vector that’s normal to the plane defined by the two vectors.

vector cross(vector vector1, vector vector2)

If the cross product is 0, the two vectors are parallel or colinear. If one or both vectors are <<0,0,0>>, the cross product returns <<0,0,0>>.

vector1 is one of the vectors.

vector2 is the other vector.

Example

cross(<<1,2,-2>>,<<3,0,1>>)

Returns <<2, -7, -6>>.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License