Scales a 3-D vector.
rhinoscriptsyntax.VectorScale (vector, scale)
rhinoscript.pointvector.VectorScale (vector, scale)
vector |
Required. List of 3 numbers or Vector3d. The 3-D vector to scale. |
scale |
Required. Number. The scale factor to apply. |
Vector3d |
The resulting 3-D vector if successful. |
None |
On error. |
import rhinoscriptsyntax as rs
vector = rs.VectorScale([1,0,0], 5)
print vector