Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
turbomath::Quaternion Class Reference

#include <turbomath.h>

Public Member Functions

Vector boxminus (const Quaternion &q) const
 
Quaternionfrom_RPY (float roll, float pitch, float yaw)
 
Quaternionfrom_two_unit_vectors (const Vector &u, const Vector &v)
 
void get_RPY (float *roll, float *pitch, float *yaw) const
 
Quaternion inverse () const
 
Quaternioninvert ()
 
Quaternionnormalize ()
 
Vector operator* (const Vector &v) const
 
Quaternion operator* (const Quaternion &q) const
 
Quaternionoperator*= (const Quaternion &q)
 
Vector operator- (const Quaternion &q) const
 
 Quaternion ()
 
 Quaternion (float w_, float x_, float y_, float z_)
 
 Quaternion (const Vector &u, const Vector &v)
 
 Quaternion (float roll, float pitch, float yaw)
 
Vector rotate (const Vector &v) const
 

Static Public Member Functions

static Vector log (const Quaternion &q)
 

Public Attributes

float w
 
float x
 
float y
 
float z
 

Detailed Description

Definition at line 104 of file turbomath.h.

Constructor & Destructor Documentation

turbomath::Quaternion::Quaternion ( )

Definition at line 169 of file turbomath.cpp.

turbomath::Quaternion::Quaternion ( float  w_,
float  x_,
float  y_,
float  z_ 
)

Definition at line 172 of file turbomath.cpp.

turbomath::Quaternion::Quaternion ( const Vector u,
const Vector v 
)

Definition at line 175 of file turbomath.cpp.

turbomath::Quaternion::Quaternion ( float  roll,
float  pitch,
float  yaw 
)

Definition at line 180 of file turbomath.cpp.

Member Function Documentation

Vector turbomath::Quaternion::boxminus ( const Quaternion q) const

Definition at line 292 of file turbomath.cpp.

Quaternion & turbomath::Quaternion::from_RPY ( float  roll,
float  pitch,
float  yaw 
)

Definition at line 273 of file turbomath.cpp.

Quaternion & turbomath::Quaternion::from_two_unit_vectors ( const Vector u,
const Vector v 
)

Definition at line 247 of file turbomath.cpp.

void turbomath::Quaternion::get_RPY ( float *  roll,
float *  pitch,
float *  yaw 
) const

Definition at line 305 of file turbomath.cpp.

Quaternion turbomath::Quaternion::inverse ( ) const

Definition at line 234 of file turbomath.cpp.

Quaternion & turbomath::Quaternion::invert ( )

Definition at line 239 of file turbomath.cpp.

static Vector turbomath::Quaternion::log ( const Quaternion q)
inlinestatic

Definition at line 129 of file turbomath.h.

Quaternion & turbomath::Quaternion::normalize ( )

Definition at line 185 of file turbomath.cpp.

Vector turbomath::Quaternion::operator* ( const Vector v) const

Definition at line 229 of file turbomath.cpp.

Quaternion turbomath::Quaternion::operator* ( const Quaternion q) const

Definition at line 205 of file turbomath.cpp.

Quaternion & turbomath::Quaternion::operator*= ( const Quaternion q)

Definition at line 213 of file turbomath.cpp.

Vector turbomath::Quaternion::operator- ( const Quaternion q) const
inline

Definition at line 146 of file turbomath.h.

Vector turbomath::Quaternion::rotate ( const Vector v) const

Definition at line 222 of file turbomath.cpp.

Member Data Documentation

float turbomath::Quaternion::w

Definition at line 107 of file turbomath.h.

float turbomath::Quaternion::x

Definition at line 108 of file turbomath.h.

float turbomath::Quaternion::y

Definition at line 109 of file turbomath.h.

float turbomath::Quaternion::z

Definition at line 110 of file turbomath.h.


The documentation for this class was generated from the following files:


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:31