Rotates a 3-D vector.
rhinoscriptsyntax.VectorRotate (vector, angle_degrees, axis )
rhinoscript.pointvector.VectorRotate (vector, angle_degrees, axis )
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. |
Vector3d |
The resulting 3-D vector if successful. |
None |
On error. |
import rhinoscriptsyntax as rs
vector = rs.VectorRotate([1,0,0], 90.0, [0,0,1])
print vector