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