Vector.unitized

Vector.unitized()[source]

Returns a unitized copy of this vector.

Returns

Vector – A unitized copy of the vector.

Examples

>>> u = Vector(1.0, 2.0, 3.0)
>>> v = u.unitized()
>>> u.length == 1.0
False
>>> v.length == 1.0
True