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
Scales the quaternion to make it unit-length.
None
Examples
>>> q = Quaternion(1.0, 1.0, 1.0, 1.0)
>>> q.is_unit
False
>>> q.unitize()
>>> q.is_unit
True
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev