Vector.unitize
- Vector.unitize()[source]
Scale this vector to unit length.
- Returns:
- None
Examples
>>> u = Vector(1.0, 2.0, 3.0) >>> u.unitize() >>> u.length 1.0
Site Navigation
Scale this vector to unit length.
Examples
>>> u = Vector(1.0, 2.0, 3.0)
>>> u.unitize()
>>> u.length
1.0