Unitizes, or normalizes, a 3-D vector. Note, zero vectors cannot be unitized.
rhinoscriptsyntax.VectorUnitize (vector)
rhinoscript.pointvector.VectorUnitize (vector)
vector |
Required. List of 3 numbers or Vector3d. The 3-D vector to unitize. |
Vector3d |
The resulting 3-D vector if successful. |
None |
On error. |
import rhinoscriptsyntax as rs
vector = rs.VectorUnitize( [1.5,-4.1,3.6] )
print vector