quaternion_is_unit
-
compas.geometry.
quaternion_is_unit
(q, tol=1e-06)[source] Checks if a quaternion is unit-length.
- Parameters
q (list) – Quaternion as a list of four real values
[w, x, y, z]
.tol (float, optional) – Requested decimal precision.
- Returns
bool –
True
if the quaternion is unit-length, andFalse
if otherwise.