quaternion_unitize
-
compas.geometry.
quaternion_unitize
(q)[source] Makes a quaternion unit-length.
- Parameters
q (list) – Quaternion as a list of four real values
[w, x, y, z]
.- Returns
list – Quaternion of length 1 as a list of four real values
[nw, nx, ny, nz]
.