Adds two 3-D vectors.
rhinoscriptsyntax.VectorAdd (vector1, vector2)
rhinoscript.pointvector.VectorAdd (vector1, vector2)
vector1 |
Required. List of 3 numbers, Point3d, or Vector3d. The 3-D vector to add to. |
vector2 |
Required. List of 3 numbers, Point3d, or Vector3d. The 3-D vector to add. |
Vector2d |
The resulting 3-D vector if successful. |
None |
On error. |
import rhinoscriptsyntax as rs
vector1 = (1,0,0)
vector2 = (0,1,0)
vector = rs.VectorAdd(vector1, vector2)
print vector