#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 104 of file turbomath.h.
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.
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.
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.
|
inlinestatic |
Definition at line 129 of file turbomath.h.
Quaternion & turbomath::Quaternion::normalize | ( | ) |
Definition at line 185 of file turbomath.cpp.
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.
|
inline |
Definition at line 146 of file turbomath.h.
Definition at line 222 of file turbomath.cpp.
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.