The heading angles of a root rotation, the inverse of heading:
with R = Ry(yaw) Rx(pitch) Rz(roll), the turned forward axis is
(sin yaw cos pitch, -sin pitch, cos yaw cos pitch) and the vertical
components of the turned left and up axes are sin roll cos pitch and
cos roll cos pitch. A rotation composed in the world (a pelvis tilted
about a floor axis after its turn) becomes a posture's heading through
it. The original atan2 readings and clamped asin operate directly on
those three turned axes, including at a vertical forward axis.
The heading angles of a root rotation, the inverse of heading: with
R = Ry(yaw) Rx(pitch) Rz(roll), the turned forward axis is(sin yaw cos pitch, -sin pitch, cos yaw cos pitch)and the vertical components of the turned left and up axes aresin roll cos pitchandcos roll cos pitch. A rotation composed in the world (a pelvis tilted about a floor axis after its turn) becomes a posture's heading through it. The original atan2 readings and clamped asin operate directly on those three turned axes, including at a vertical forward axis.