VectorRotate

Rotates a 3-D vector.

Syntax

rhinoscriptsyntax.VectorRotate (vector, angle_degrees, axis )

rhinoscript.pointvector.VectorRotate (vector, angle_degrees, axis )

Parameters

vector

Required.  List of 3 numbers or Vector3d.  The 3-D vector.

angle_degrees

Required.  Number.  The rotation angle in degrees.

axis

Required.  List of 3 numbers or Vector3d.  A 3-D vector defining the axis of rotation.

Returns

Vector3d

The resulting 3-D vector if successful.

None

On error.

Example

import rhinoscriptsyntax as rs

vector = rs.VectorRotate([1,0,0], 90.0, [0,0,1])

print vector

Also See

VectorCreate

VectorScale