Creates a vector from two 3-D points.
rhinoscriptsyntax.VectorCreate (to_point, from_point)
rhinoscript.pointvector.VectorCreate (to_point, from_point)
to_point |
Required. List of 3 numbers or Point3d. The 3-D end point. |
from_point |
Required. List of 3 numbers or Point3d. The 3-D start point. |
Vector3d |
The resulting 3-D vector if successful. (to_point - from_point) |
None |
On error. |
import rhinoscriptsyntax as rs
point1 = rs.GetPoint("First point")
point2 = rs.GetPoint("Next point")
vector = rs.VectorCreate(point2, point1)
print vector