Quaternion getRotate glm

In the past i can do

        auto rot = joint.getOrientationQuat();
        ofVec3f axis;
        float angle;
        rot.getRotate(angle, axis);
        ofRotate(angle, axis.x, axis.y, axis.z);

But now with glm i get an error on getRotate, how can i do that code with glm ?¿¿

here’s the docs for all the functions that you can use with quaternions: https://openframeworks.cc///documentation/glm/gtc_quaternion/

in particular you want

float angle = glm::angle(rot);
glm::vec3 axis = glm::axis(rot)
1 Like

Thank you arturo!