I have a nice quaternion to euler equation that is sometimes returning a non-intuitive set of angles.
For example:
- Pitch: 129
- Yaw: -85
- Roll: 126
I would like to programatically find alternate rotations such that Pitch and Roll are between -90 and 90. Yaw can be 0 to 360.
[EDIT] Pitch is constrained to -90 to +90 and Roll is constrained to -180 to +180.