How can I get and set a rotation about a specific axis from a qauternion?

I have a quaternion rotated arbitrarily in 3D space, but I would like to 
inspect its rotation about the global z-axis, then after inspection I would 
like to be able to set that rotation.  I suppose to set it I could just add the 
difference between the current rotation and the final rotation, but to do this 
I still need to be able to inspect the z-rotation initially.

Thanks.

Matt

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32622#32622





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to