I'am working with Quaternion, I have two Quaternions, first is an initiale Quaternion, and I have a second Quaternion, I'd like to detect if my second Quaternion has rotate more than 90° in x or y is it possible? For now I can compute angle between two Quaternions, but I detect if I rotated more than 90 in x, y and z.
For example my initial Quaternion position (w, x, y, z) order
0.73 0.68 0.06 0.04
My second Quaternion 0.69 0.58 0.31 0.30
So I can compute total rotation like this
q3 = conjugate(q2);
q_multiply = multiply(q1, q3);
angle = (2 * acos(q_mulitply.w)) * RAD_TO_DEG;
if(angle > 90)
do something
So now I have the angle between q1 and q2 but now I'd like to detect only if for example x or y has rotated more than 90°, I don't care about if my z rotated more than 90°.