Aircraft attitude: the 3-2-1 Euler sequence
An aircraft's orientation is described by three ordered rotations from an Earth axis system (North-East-Down) to the body axes: yaw ψ about Earth down, then pitchθ, then roll φ. Move the sliders to set an attitude and watch the body triad and aircraft follow. The direction-cosine matrix and orientation quaternion below are recomputed in Rust compiled to WebAssembly on every change.