cross (Vector)

Returns cross-product of two 3D vectors.

Arguments

vector0
and
vector1
are the 3-dimensional Vectors to cross.

Return values

vector2
is the cross-product Vector.

Complexity

Constant

Example

"sl/algebra" useFile v1: (1.0 3.0 2.0) makeVector; v2: (0.1 0.2 0.3) makeVector; v1 v2 cross .makeRange [print "," print] each
Output:
0.500000,-0.100000,-0.100000,