How a joint's three clinical angles read from its rotation as a swivel
turns it: for a bone-local rotation that is a fixed rotation turned about a
fixed axis by the swivel, every entry of its matrix on the clinical basis
is a + b cos ψ + c sin ψ (Rodrigues' formula between two fixed
rotations), fitted exactly from the rotation at 0, 90 and 180 degrees, and
each clinical angle is read from those entries as
decomposeJointRotationOnBasis reads it: the middle angle of the
composition by its sine, an outer angle by the vector atan2 takes.
How a joint's three clinical angles read from its rotation as a swivel turns it: for a bone-local rotation that is a fixed rotation turned about a fixed axis by the swivel, every entry of its matrix on the clinical basis is
a + b cos ψ + c sin ψ(Rodrigues' formula between two fixed rotations), fitted exactly from the rotation at 0, 90 and 180 degrees, and each clinical angle is read from those entries asdecomposeJointRotationOnBasisreads it: the middle angle of the composition by its sine, an outer angle by the vectoratan2takes.