Quaternion.unitized

Quaternion.unitized()[source]

Returns a quaternion with a unit-length.

Examples

>>> q = Quaternion(1.0, 1.0, 1.0, 1.0)
>>> q.is_unit
False
>>> p = q.unitized()
>>> p.is_unit
True