quaternion_norm
- compas.geometry.quaternion_norm(q)[source]
Calculates the length (euclidean norm) of a quaternion.
- Parameters:
- q[float, float, float, float] |
compas.geometry.Quaternion
Quaternion or sequence of four floats
[w, x, y, z]
.
- q[float, float, float, float] |
- Returns:
- float
The length (euclidean norm) of a quaternion.
See also
References
Quaternion Norm: http://mathworld.wolfram.com/QuaternionNorm.html