Quaternion.unitized

Quaternion.unitized()[source]

Returns a quaternion with a unit-length.

Returns

Quaternion

Examples

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