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 99 of file turbomath.h.

Constructor & Destructor Documentation

turbomath::Quaternion::Quaternion ( )

Definition at line 130 of file turbomath.cpp.

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

Definition at line 132 of file turbomath.cpp.

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

Definition at line 134 of file turbomath.cpp.

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

Definition at line 139 of file turbomath.cpp.

Member Function Documentation

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

Definition at line 250 of file turbomath.cpp.

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

Definition at line 231 of file turbomath.cpp.

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

Definition at line 205 of file turbomath.cpp.

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

Definition at line 263 of file turbomath.cpp.

Quaternion turbomath::Quaternion::inverse ( ) const

Definition at line 192 of file turbomath.cpp.

Quaternion & turbomath::Quaternion::invert ( )

Definition at line 197 of file turbomath.cpp.

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

Definition at line 124 of file turbomath.h.

Quaternion & turbomath::Quaternion::normalize ( )

Definition at line 144 of file turbomath.cpp.

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

Definition at line 187 of file turbomath.cpp.

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

Definition at line 164 of file turbomath.cpp.

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

Definition at line 170 of file turbomath.cpp.

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

Definition at line 141 of file turbomath.h.

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

Definition at line 179 of file turbomath.cpp.

Member Data Documentation

float turbomath::Quaternion::w

Definition at line 102 of file turbomath.h.

float turbomath::Quaternion::x

Definition at line 103 of file turbomath.h.

float turbomath::Quaternion::y

Definition at line 104 of file turbomath.h.

float turbomath::Quaternion::z

Definition at line 105 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 Fri Oct 9 2020 03:17:21