cross()
Purpose
Find the cross product of two vectors
Description
Calculate the cross product of two vectors which is the vector that is at right angles to them both
Syntax
vector3 = cross( vector1, vector2 )
Arguments
vector1 The first vector (x,y,z)
vector2 The second vector (x,y,z)
vector3 The resulting vector (x,y,z)
Example
vector1 = { 2, 3, 4 }
vector2 = { 5, 6, 7 }
vector3 = cross( vector1, vector2 )
print( "(", vector3.x, ",", vector3.y, ",", vector3.z, ")" )
update()
sleep( 3 )
Associated Commands