VectorRotate

Rotates a 3-D vector.

Syntax

Rhino.VectorRotate (arrVector, dblAngle, arrAxis)

Parameters

arrVector

Required.  Array.  The 3-D vector.

dblAngle

Required.  Number.  The rotation angle in degrees.

arrAxis

Required.  Array.  A 3-D vector defining the axis of rotation.

Returns

Array

The resulting 3-D vector if successful.

Null

On error.

Example

Dim arrVector

arrVector = Rhino.VectorRotate(Array(1,0,0), 90.0, Array(0,0,1))

Rhino.Print Rhino.Pt2Str(arrVector)

Also See

VectorCreate

VectorScale