Flair
Framework Libre Air
flair::core::Euler Class Reference

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...
 
Euleroperator= (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...
 

Detailed Description

Class defining euler angles.

Euler angles are expressed in radians.

Constructor & Destructor Documentation

flair::core::Euler::Euler ( float  roll = 0,
float  pitch = 0,
float  yaw = 0 
)

Constructor.

Construct euler angles using specified values.

Parameters
rollroll value
pitchpitch value
yawyaw value
flair::core::Euler::~Euler ( )

Destructor.

Member Function Documentation

void flair::core::Euler::ToQuaternion ( Quaternion quaternion) const

x axis rotation

Parameters
valuerotation value in radians

x axis rotation

Parameters
valuerotation value in degrees

y axis rotation

Parameters
valuerotation value in radians

y axis rotation

Parameters
valuerotation value in degrees

z axis rotation

Parameters
valuerotation value in radians

z axis rotation

Parameters
valuerotation value in degrees

Convert to quaternion

Parameters
quaternionoutput quaternion
Quaternion flair::core::Euler::ToQuaternion ( void  ) const

Convert to quaternion.

Returns
quaternion
static float flair::core::Euler::ToDegree ( float  radianValue)
static

Convert from radian to degree.

Parameters
radianValuevalue in radian
Returns
value in degree
static float flair::core::Euler::ToRadian ( float  degreeValue)
static

Convert from degree to radian.

Parameters
degreeValuevalue in degree
Returns
value in radian
float flair::core::Euler::YawDistanceFrom ( float  angle) const

Compute yaw distance.

Compute yaw distance from given angle. This is the minimum distance.

Parameters
anglestarting angle
Returns
value distance in radian

Member Data Documentation

float flair::core::Euler::roll

roll value

float flair::core::Euler::pitch

pitch value

float flair::core::Euler::yaw

yaw value