VectorCrossProduct

Calculates the cross product of two 3-D vectors. The vector a x b is orthogonal to both a and b.

Syntax

Rhino.VectorCrossProduct (arrVector1, arrVector2)

Parameters

arrVector1

Required.  Array.  The first 3-D vector.

arrVector2

Required.  Array.  The second 3-D vector.

Returns

Array

The resulting 3-D vector if successful.

Null

On error.

Example

Dim arrVector1, arrVector2, arrVector

arrVector1 = Array(1,0,0)

arrVector2 = Array(0,1,0)

arrVector = Rhino.VectorCrossProduct(arrVector1, arrVector2)

Rhino.Print Rhino.Pt2Str(arrVector)

Also See

VectorDotProduct

VectorUnitize