I am currently writing up a program that needs to know the difference in degrees for each axis between two quaternions.
Now, suppose I have a starting quaternion Qs and I need to compute at each step the difference between my current orientation represented by the quaternion Qc.
I do that:
Q = Qc^-1 * Qs
Now I would like to get values from the quaternion Q that would represent for each axis the number of degrees that differ from Qc to Qs. Is that possible?
Edit: If that's not clear here are other explanations
I know I can get the angle value from a quaternion by doing
2 * cos-1(q.w). Now I would like to get an idea on how to project this angle onto each axis. The expected output is something like:
From Qs to Qc there is a rotation of 30 degrees on the x axis, 20 degrees on the y axis and 0 degrees on the z axis