Transforms a 3-D vector.
rhinoscriptsyntax.VectorTransform (vector, xform)
rhinoscript.pointvector.VectorTransform (vector, xform)
vector |
Required. List of 3 numbers of Vector3d. The 3-D vector to transform. |
xform |
Required. List or Rhino.Geometry.Transform. A valid 4x4 transformation matrix. |
Vector3d |
The resulting 3-D vector if successful. |
None |
On error. |
import rhinoscriptsyntax as rs
vector = (1,0,0) #world x-axis
xform = rs.XformRotation2(90.0, (0,0,1), (0,0,0))
vector = rs.VectorTransform(vector, xform)
print vector