three euler angles vs one quaternion. drag the pitch toward 90° and watch two of the axes collapse.
euler angles apply three rotations in sequence, each about an axis carried by the previous one. at pitch ±90° the yaw and roll axes line up — one degree of freedom vanishes. a quaternion stores an axis and an angle directly, so it never loses a direction. this is why flight software and every game engine use quaternions, not euler angles, for orientation.