Consider this code:
ofQuaternion rotX, rotY;
rotX.makeRotate(-35, 1, 0, 0);
rotZ.makeRotate( 45, 0, 1, 0);
cam.setOrientation(rotX * rotY);
ofLogVerbose(ofToString(cam.getOrientationEuler()));
The output is:
[verbose] 0, 45, -35
Just as expected…
Now this code:
cam.setOrientation(ofVec3f(0, 45, -35));
ofLogVerbose(ofToString(cam.getOrientationEuler()));
The output is:
[verbose] -23.9275, 50.6773, 26.341
This is not as expected. Is this a bug or am I missing something?