Struct for Euler angles of floating point numbers. More...
#include <AH/Math/Quaternion.hpp>
 Collaboration diagram for EulerAngles:Public Member Functions | |
| EulerAngles ()=default | |
| Create Euler angles that are initialized to (0 0 0), or upright.  More... | |
| EulerAngles (float yaw, float pitch, float roll) | |
| Create Euler angles with the given values for yaw, pitch and roll.  More... | |
| EulerAngles (Quaternion q) | |
| Create Euler angles from the given quaternion.  More... | |
| operator Quaternion () const | |
| Implicitly convert these Euler angles to a quaternion.  More... | |
| bool | operator== (EulerAngles rhs) const | 
| Equality check.  More... | |
| bool | operator!= (EulerAngles rhs) const | 
| Inequality check.  More... | |
Static Public Member Functions | |
| static EulerAngles | quat2eul (Quaternion q) | 
| Convert the given quaternion to Euler angles.  More... | |
| static Quaternion | eul2quat (EulerAngles eulerAngles) | 
| Convert the given Euler angles to a quaternion.  More... | |
Public Attributes | |
| float | yaw = 0.0 | 
| Z : drone Z = world +Z.  More... | |
| float | pitch = 0.0 | 
| Y': drone Y = world -X.  More... | |
| float | roll = 0.0 | 
| X": drone X = world +Y.  More... | |
Related Functions | |
(Note that these are not member functions.)  | |
| Print & | operator<< (Print &os, EulerAngles e) | 
| Printing.  More... | |
Struct for Euler angles of floating point numbers.
EulerAngles provides the conversions between Euler angles and quaternions. It also has an implementation of the following operators:
==, != (equality)<< (printing) Definition at line 292 of file Quaternion.hpp.
      
  | 
  default | 
Create Euler angles that are initialized to (0 0 0), or upright.
      
  | 
  inline | 
Create Euler angles with the given values for yaw, pitch and roll.
Definition at line 300 of file Quaternion.hpp.
      
  | 
  inline | 
Create Euler angles from the given quaternion.
Definition at line 303 of file Quaternion.hpp.
      
  | 
  inline | 
Implicitly convert these Euler angles to a quaternion.
Definition at line 306 of file Quaternion.hpp.
      
  | 
  inline | 
Equality check.
Definition at line 309 of file Quaternion.hpp.
      
  | 
  inline | 
Inequality check.
Definition at line 314 of file Quaternion.hpp.
      
  | 
  inlinestatic | 
Convert the given quaternion to Euler angles.
Definition at line 317 of file Quaternion.hpp.
      
  | 
  inlinestatic | 
Convert the given Euler angles to a quaternion.
Definition at line 332 of file Quaternion.hpp.
| float yaw = 0.0 | 
Z : drone Z = world +Z.
Definition at line 293 of file Quaternion.hpp.
| float pitch = 0.0 | 
Y': drone Y = world -X.
Definition at line 294 of file Quaternion.hpp.
| float roll = 0.0 | 
X": drone X = world +Y.
Definition at line 295 of file Quaternion.hpp.