quaternion_conjugate

compas.geometry.quaternion_conjugate(q)[source]

Conjugate of a quaternion.

Parameters

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

Returns

[float, float, float, float] – Conjugate quaternion as a list of four real values [cw, cx, cy, cz].

References