Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Related Symbols | List of all members
EulerAngles Struct Reference

#include <AH/Math/Quaternion.hpp>

Detailed Description

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:

Definition at line 288 of file Quaternion.hpp.

+ Collaboration diagram for EulerAngles:

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.
 

Constructor & Destructor Documentation

◆ EulerAngles() [1/3]

EulerAngles ( )
default

Create Euler angles that are initialized to (0 0 0), or upright.

◆ EulerAngles() [2/3]

EulerAngles ( float yaw,
float pitch,
float roll )
inline

Create Euler angles with the given values for yaw, pitch and roll.

Definition at line 296 of file Quaternion.hpp.

◆ EulerAngles() [3/3]

EulerAngles ( Quaternion q)
inline

Create Euler angles from the given quaternion.

Definition at line 299 of file Quaternion.hpp.

Member Function Documentation

◆ operator Quaternion()

operator Quaternion ( ) const
inline

Implicitly convert these Euler angles to a quaternion.

Definition at line 302 of file Quaternion.hpp.

◆ operator==()

bool operator== ( EulerAngles rhs) const
inline

Equality check.

Definition at line 305 of file Quaternion.hpp.

◆ operator!=()

bool operator!= ( EulerAngles rhs) const
inline

Inequality check.

Definition at line 310 of file Quaternion.hpp.

◆ quat2eul()

static EulerAngles quat2eul ( Quaternion q)
inlinestatic

Convert the given quaternion to Euler angles.

Definition at line 313 of file Quaternion.hpp.

◆ eul2quat()

static Quaternion eul2quat ( EulerAngles eulerAngles)
inlinestatic

Convert the given Euler angles to a quaternion.

Definition at line 328 of file Quaternion.hpp.

Member Data Documentation

◆ yaw

float yaw = 0.0

Z : drone Z = world +Z.

Definition at line 289 of file Quaternion.hpp.

◆ pitch

float pitch = 0.0

Y': drone Y = world -X.

Definition at line 290 of file Quaternion.hpp.

◆ roll

float roll = 0.0

X": drone X = world +Y.

Definition at line 291 of file Quaternion.hpp.


The documentation for this struct was generated from the following file: