#include <AH/Math/Quaternion.hpp>
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 288 of file Quaternion.hpp.
Public Member Functions | |
EulerAngles ()=default | |
Create Euler angles that are initialized to (0 0 0), or upright. | |
EulerAngles (float yaw, float pitch, float roll) | |
Create Euler angles with the given values for yaw, pitch and roll. | |
EulerAngles (Quaternion q) | |
Create Euler angles from the given quaternion. | |
operator Quaternion () const | |
Implicitly convert these Euler angles to a quaternion. | |
bool | operator== (EulerAngles rhs) const |
Equality check. | |
bool | operator!= (EulerAngles rhs) const |
Inequality check. | |
Static Public Member Functions | |
static EulerAngles | quat2eul (Quaternion q) |
Convert the given quaternion to Euler angles. | |
static Quaternion | eul2quat (EulerAngles eulerAngles) |
Convert the given Euler angles to a quaternion. | |
Public Attributes | |
float | yaw = 0.0 |
Z : drone Z = world +Z. | |
float | pitch = 0.0 |
Y': drone Y = world -X. | |
float | roll = 0.0 |
X": drone X = world +Y. | |
Related Symbols | |
(Note that these are not member symbols.) | |
Print & | operator<< (Print &os, EulerAngles e) |
Printing. | |
|
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 296 of file Quaternion.hpp.
|
inline |
Create Euler angles from the given quaternion.
Definition at line 299 of file Quaternion.hpp.
|
inline |
Implicitly convert these Euler angles to a quaternion.
Definition at line 302 of file Quaternion.hpp.
|
inline |
Equality check.
Definition at line 305 of file Quaternion.hpp.
|
inline |
Inequality check.
Definition at line 310 of file Quaternion.hpp.
|
inlinestatic |
Convert the given quaternion to Euler angles.
Definition at line 313 of file Quaternion.hpp.
|
inlinestatic |
Convert the given Euler angles to a quaternion.
Definition at line 328 of file Quaternion.hpp.
float yaw = 0.0 |
Z : drone Z = world +Z.
Definition at line 289 of file Quaternion.hpp.
float pitch = 0.0 |
Y': drone Y = world -X.
Definition at line 290 of file Quaternion.hpp.
float roll = 0.0 |
X": drone X = world +Y.
Definition at line 291 of file Quaternion.hpp.