Calculates the cross product of two 3-D vectors. The vector a x b is orthogonal to both a and b.
Rhino.VectorCrossProduct (arrVector1, arrVector2)
arrVector1 |
Required. Array. The first 3-D vector. |
arrVector2 |
Required. Array. The second 3-D vector. |
Array |
The resulting 3-D vector if successful. |
Null |
On error. |
Dim arrVector1, arrVector2, arrVector
arrVector1 = Array(1,0,0)
arrVector2 = Array(0,1,0)
arrVector = Rhino.VectorCrossProduct(arrVector1, arrVector2)
Rhino.Print Rhino.Pt2Str(arrVector)