Convert Quat to Euler Angles?

Miscellaneous Forums/General Discussion/Convert Quat to Euler Angles?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Worse, if I feed in 95,0,0 convert to Quaternions, then convert to Eulers, I have 85,180,-180


This is correct!

Work out what angles the two Eulers give you in real life. They're identical.

The QuatToEuler functions given here just give you *one* correct Euler angle. There are many identical Euler angles that can be expressed in different numbers.

It's like a square-root function: what would you expect sqrt((-5) * (-5)) to return?