Adds two 3-D vectors. With two vectors, a and b, the sum a+b is a vector that is calculated as follows:
a = (a1, a2, a3)
b = (b1, b2, b3)
a+b = (a1+b1, a2+b2, a3+b3)
Rhino.VectorAdd (arrVector1, arrVector2)
arrVector1 |
Required. Array. The 3-D vector to add to. |
arrVector2 |
Required. Array. The 3-D vector to add. |
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.VectorAdd(arrVector1, arrVector2)
Rhino.Print Rhino.Pt2Str(arrVector)