- compas.geometry.quaternion_multiply(r, q)
Multiplies two quaternions.
[float, float, float, float] – Quaternion \(p = rq\) as a list of four real values
[pw, px, py, pz].
Multiplication of two quaternions \(p = rq\) can be interpreted as applying rotation \(r\) to an orientation \(q\), provided that both \(r\) and \(q\) are unit-length. The result is also unit-length. Multiplication of quaternions is not commutative!