Conversion between quaternions and Euler angles: Difference between revisions

Content deleted Content added
Replaced formulas and algorithm with an equivalent one that has less numerical problems
Line 232:
 
// this implementation assumes normalized quaternion
// converts to Euler angles in 3-2-1 sequence
EulerAngles ToEulerAngles(Quaternion q_input) {
EulerAngles angles;