#include <turbomath.h>
Public Member Functions | |
Vector | boxminus (const Quaternion &q) const |
Quaternion & | from_RPY (float roll, float pitch, float yaw) |
Quaternion & | from_two_unit_vectors (const Vector &u, const Vector &v) |
void | get_RPY (float *roll, float *pitch, float *yaw) const |
Quaternion | inverse () const |
Quaternion & | invert () |
Quaternion & | normalize () |
Vector | operator* (const Vector &v) const |
Quaternion | operator* (const Quaternion &q) const |
Quaternion & | operator*= (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 |
Definition at line 99 of file turbomath.h.
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.
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.
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.
|
inlinestatic |
Definition at line 124 of file turbomath.h.
Quaternion & turbomath::Quaternion::normalize | ( | ) |
Definition at line 144 of file turbomath.cpp.
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.
|
inline |
Definition at line 141 of file turbomath.h.
Definition at line 179 of file turbomath.cpp.
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.