The pig head has some rotational movement from position A to B as shown in my attached pic.
(Pivot point remains at {0,0,0} with no translation or rotation)
In order to the get the degrees for such rotation, I have the following:
// Method 1. Matrix only:
matrix3 offset = invert(A) * B;
vector Rot = cracktransform(0, 0, 1, 0, offset);
// Method 2. Convert to quaternions for calculation:
vector4 A = quaternion(A);
vector4 B = quaternion(B);
vector4 offsetQ = qmultiply(A, qinvert(B));
vector Rot = qconvert(offsetQ);
I was expecting the same result for Rot, unfortunately not.
There must be something somewhere I misunderstood. Someone explain to this noob, please?