Question by
SaSha_K · Feb 01, 2017 at 11:07 AM ·
quaternioneuler anglesinverse
Why Quaternion from inverted Euler angles not equal to inverted Quaternion from original Euler?
Could you explain please, why these two inverted quaternions are not equal:
Vector3 ev = new Vector3(x,y,z);
Quaternion q = Quaternion.Euler(ev);
Quaternion iq1 = Quaternion.Euler(-ev);
Quaternion iq2 = Quaternion.Inverse(q);
if (iq1 != iq2)
{ Debug.LogWarning(" =( "); }
This warning prints every frame. I expect, quat. from inverted Euler angles should be equal to inverted quat. from original Euler.
Comment
Answer by ChiAkuma · Mar 13 at 03:17 PM
Yes have found out the same thing.... But no one replied here?
Your answer
Follow this Question
Related Questions
I can get Quaternion data(x,y,z,w) from simulation program. But, how to assign it in rotation? 1 Answer
Quaternions to EulerAngles weird x-axis interaction 1 Answer
Quaternion.Angle() unexpected output. Compare to Vector3.Angle() which produces correct values. 0 Answers
Order of the rotations around the axes with Euler angles 1 Answer
Annoying Quaternions and Eulers 1 Answer