Returns the length of a vector.
Rhino.VectorLength (arrVector)
|
arrVector |
Required. Array. The 3D vector. |
|
Double |
The length of the vector, if successful. |
|
Null |
On error. |
Dim arrPt1, arrPt2, arrVector
arrPt1 = Rhino.GetPoint("First point")
arrPt2 = Rhino.GetPoint("Next point")
arrVector = Rhino.VectorCreate(arrPt2, arrPt1)
MsgBox Rhino.VectorLength(arrVector)