Quaternion.unitize

Quaternion.unitize()[source]

Scales the quaternion to make it unit-length.

Returns

None

Examples

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