   Quaternion/Matrix To Euler Angle
  Hi ,math guru, i have implement a system which use right-hand coordinate system and z axis as the world up axis, so the x axis has direction from west to east .   Z |   Y   | /   |/___ X if i have defined the order of euler angle as pitch->yaw->roll,  is it possible to extract the euler angle from orientation expressed as quaternion or matrix rotating around the generic axis in world which is not the base axis of world space (i.e the axes of yaw ,pitch and roll are not the base axes of world space)? how to do it?thanks.[Edited by - kamimail on May 13, 2010 11:37:22 PM]
  If I understand you correctly, you have a quaternion (or can create one) defining a rotation about a non-world axis (such as for an airplane) and you want to derive the Euler angles with respect to that non-world axis. Is that correct?If so, perhaps googling for "quaternion to euler conversion" can help. E.g., Wikipedia discusses conversion between quats and eulers.Do I understand your question?   