File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,22 @@ typedef struct quaternion_
75
75
/** 3D Euler or Tait-Bryan angles (in radian) */
76
76
typedef struct euler_
77
77
{
78
- float roll ; /**< or bank \f$\phi\f$ = rotation about X axis */
79
- float pitch ; /**< or elevation \f$\theta\f$ = rotation about Y axis */
80
- float yaw ; /**< or heading \f$\psi\f$ = rotation about Z axis */
78
+ union
79
+ {
80
+ float roll ; /**< or bank \f$\phi\f$ = rotation about X axis */
81
+ float bank ; /**< or bank \f$\phi\f$ = rotation about X axis */
82
+ };
83
+ union
84
+ {
85
+ float pitch ; /**< or elevation \f$\theta\f$ = rotation about Y axis */
86
+ float
87
+ elevation ; /**< or elevation \f$\theta\f$ = rotation about Y axis */
88
+ };
89
+ union
90
+ {
91
+ float yaw ; /**< or heading \f$\psi\f$ = rotation about Z axis */
92
+ float heading ; /**< or heading \f$\psi\f$ = rotation about Z axis */
93
+ };
81
94
} euler ;
82
95
83
96
/** @} */
You can’t perform that action at this time.
0 commit comments