|
定义一个osg:uat 存储姿态信息,让其绕x轴30度,绕y轴60度,绕z轴90度,
osg::Quat m_rotation;
m_rotation = osg::Quat(osg::inDegree(30.0f),osg::Vec3(1.0,0.0,0.0))*
osg::Quat(osg::inDegree(60.0f),osg::Vec3(0.0,1.0,0.0))*
osg::Quat(osg::inDegree(90.0f),osg::Vec3(0.0,0.0,1.0));
现在请问如何将30度,60度,90度这些数值取出来?
我试过用m_rotation.x()方法,发现取出来并不是我想要的绕x轴的角度值,谢谢! |
|