VectorLength



Your Ad Here

Returns the length of a vector.

Syntax

Rhino.VectorLength (arrVector)

Parameters

arrVector

Required.  Array.  The 3D vector.

Returns

Double

The length of the vector, if successful.

Null

On error.

Example

Dim arrPt1, arrPt2, arrVector

arrPt1 = Rhino.GetPoint("First point")

arrPt2 = Rhino.GetPoint("Next point")

arrVector = Rhino.VectorCreate(arrPt2, arrPt1)

MsgBox Rhino.VectorLength(arrVector)

Also See

VectorAdd

VectorCreate

VectorSubtract

VectorUnitize

 

Return to Rhino Index


Your Ad Here