Contains Euler Angle data and conversion from Quaternion. More...
#include <xseuler.h>
Public Attributes | |
union { | |
struct { | |
XsReal m_x | |
Stores the x component of the euler triplet. More... | |
XsReal m_y | |
Stores the y component of the euler triplet. More... | |
XsReal m_z | |
Stores the z component of the euler triplet. More... | |
} | |
struct { | |
XsReal m_pitch | |
Stores the pitch component of the euler triplet. More... | |
XsReal m_roll | |
Stores the roll component of the euler triplet. More... | |
XsReal m_yaw | |
Stores the yaw component of the euler triplet. More... | |
} | |
XsReal m_data [3] | |
Stores the euler triplet in an array of three elements. More... | |
}; | |
Related Functions | |
(Note that these are not member functions.) | |
void | XsEuler_destruct (XsEuler *thisPtr) |
Clears all angles in the XsEuler object by setting them to 0. More... | |
int | XsEuler_empty (const XsEuler *thisPtr) |
Returns true if all angles in this object are zero. More... | |
void | XsEuler_fromQuaternion (XsEuler *thisPtr, const XsQuaternion *quat) |
Get an euler angle representation of the quaternion. More... | |
Contains Euler Angle data and conversion from Quaternion.
Euler Angles are computed as a rotation around the x-axis, followed by a rotation around the y-axis, followed by a rotation around the z-axis. In aerospace terms, x,y and z are also often referred to as roll pitch and yaw, so those names are also available as a convenience.
union { ... } |
XsReal XsEuler::m_data[3] |
XsReal XsEuler::m_pitch |
XsReal XsEuler::m_roll |
XsReal XsEuler::m_x |
XsReal XsEuler::m_y |
XsReal XsEuler::m_yaw |
XsReal XsEuler::m_z |