provide alias aviable names for euler angles

This commit is contained in:
Krishna Vedala 2020-08-17 13:46:06 -04:00
parent 0f541b2604
commit 27c50605df
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -75,9 +75,22 @@ typedef struct quaternion_
/** 3D Euler or Tait-Bryan angles (in radian) */ /** 3D Euler or Tait-Bryan angles (in radian) */
typedef struct euler_ typedef struct euler_
{ {
float roll; /**< or bank \f$\phi\f$ = rotation about X axis */ union
float pitch; /**< or elevation \f$\theta\f$ = rotation about Y axis */ {
float yaw; /**< or heading \f$\psi\f$ = rotation about Z axis */ float roll; /**< or bank \f$\phi\f$ = rotation about X axis */
float bank; /**< or bank \f$\phi\f$ = rotation about X axis */
};
union
{
float pitch; /**< or elevation \f$\theta\f$ = rotation about Y axis */
float
elevation; /**< or elevation \f$\theta\f$ = rotation about Y axis */
};
union
{
float yaw; /**< or heading \f$\psi\f$ = rotation about Z axis */
float heading; /**< or heading \f$\psi\f$ = rotation about Z axis */
};
} euler; } euler;
/** @} */ /** @} */