Flair
Framework Libre Air
|
Class defining euler angles. More...
#include <Euler.h>
Public Member Functions | |
Euler (float roll=0, float pitch=0, float yaw=0) | |
Constructor. More... | |
~Euler () | |
Destructor. More... | |
void | ToQuaternion (Quaternion &quaternion) const |
x axis rotation More... | |
Quaternion | ToQuaternion (void) const |
Convert to quaternion. More... | |
float | YawDistanceFrom (float angle) const |
Compute yaw distance. More... | |
Euler & | operator= (const Euler &euler) |
Static Public Member Functions | |
static float | ToDegree (float radianValue) |
Convert from radian to degree. More... | |
static float | ToRadian (float degreeValue) |
Convert from degree to radian. More... | |
Public Attributes | |
float | roll |
roll value More... | |
float | pitch |
pitch value More... | |
float | yaw |
yaw value More... | |
Class defining euler angles.
Euler angles are expressed in radians.
flair::core::Euler::Euler | ( | float | roll = 0 , |
float | pitch = 0 , |
||
float | yaw = 0 |
||
) |
Constructor.
Construct euler angles using specified values.
roll | roll value |
pitch | pitch value |
yaw | yaw value |
flair::core::Euler::~Euler | ( | ) |
Destructor.
void flair::core::Euler::ToQuaternion | ( | Quaternion & | quaternion | ) | const |
x axis rotation
value | rotation value in radians |
x axis rotation
value | rotation value in degrees |
y axis rotation
value | rotation value in radians |
y axis rotation
value | rotation value in degrees |
z axis rotation
value | rotation value in radians |
z axis rotation
value | rotation value in degrees |
Convert to quaternion
quaternion | output quaternion |
Quaternion flair::core::Euler::ToQuaternion | ( | void | ) | const |
Convert to quaternion.
|
static |
Convert from radian to degree.
radianValue | value in radian |
|
static |
Convert from degree to radian.
degreeValue | value in degree |
float flair::core::Euler::YawDistanceFrom | ( | float | angle | ) | const |
Compute yaw distance.
Compute yaw distance from given angle. This is the minimum distance.
angle | starting angle |
float flair::core::Euler::roll |
roll value
float flair::core::Euler::pitch |
pitch value
float flair::core::Euler::yaw |
yaw value