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
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
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev