Convert quaternionsgreenspun.com : LUSENET : quaternions : One Thread
Hi. How can I convert quaternions in Euler angles (roll, pitch and yaw) around X,Y and Z axes
-- Marko Vrh (firstname.lastname@example.org), September 22, 2004
I don't think you _should_ do this. Everyone flying rockets uses quaternions for 3D rotations in their software for two reasons: it avoid bogus poles where the transformations lock up, and errors that appear in the rotation matrix due to limits on computational precision can be more easily managed (make that matrix unitary again).
There is no universal Euler matrix. Instead there are many different conventions used. You will have to look over the details carefully. I would consult this paper to address your question:
Good luck, doug
-- Doug Sweetser (email@example.com), November 28, 2004.