I am rendering model using quaternions. When model is moving, I need to find angle between two quaternions which I am getting through resultant of difference quaternions and using this formula
float angle = acosf(res.w) * 2.0f * 57.2957795f;
Here I can get angle easily. But I need to find whether this angle is clockwise or anticlockwise.
Is any glm api for that or how can identify direction of movement. Here my modal is moving perfectly in both direction (CW & ACW), but it gives positive angle only. Or am I doing something wrong in angle calculation?