quaternion_norm

compas.geometry.quaternion_norm(q)[source]

Calculates the length (euclidean norm) of a quaternion.

Parameters

q ([float, float, float, float] | Quaternion) – Quaternion or sequence of four floats [w, x, y, z].

Returns

float – The length (euclidean norm) of a quaternion.

References