#include <geometry.h>
Public Member Functions | |
Quaternion | euler_to_quaternion (float pitch, float yaw, float roll) |
void | normalise (Quaternion quater) |
Quaternion (const Quaternion &q) | |
Quaternion (Quaternion &q) | |
Quaternion (double nx, double ny, double nz, double nw) | |
Quaternion () | |
~Quaternion () | |
Public Attributes | |
double | w |
double | x |
double | y |
double | z |
Static Private Attributes | |
static const double | pi_over_360 = 0.0087266462599716477 |
Definition at line 33 of file geometry.h.
geometry::Quaternion::Quaternion | ( | ) |
Definition at line 39 of file geometry.cpp.
geometry::Quaternion::Quaternion | ( | double | nx, | |
double | ny, | |||
double | nz, | |||
double | nw | |||
) |
Definition at line 43 of file geometry.cpp.
geometry::Quaternion::Quaternion | ( | Quaternion & | q | ) |
Definition at line 47 of file geometry.cpp.
geometry::Quaternion::Quaternion | ( | const Quaternion & | q | ) |
Definition at line 51 of file geometry.cpp.
geometry::Quaternion::~Quaternion | ( | ) |
Definition at line 55 of file geometry.cpp.
Quaternion geometry::Quaternion::euler_to_quaternion | ( | float | pitch, | |
float | yaw, | |||
float | roll | |||
) |
Convert roll, pitch, yaw (Euler Angles) to Quaternion
pitch | pitch angle | |
yaw | yaw angle | |
roll | roll angle |
Definition at line 58 of file geometry.cpp.
void geometry::Quaternion::normalise | ( | Quaternion | quater | ) |
Definition at line 87 of file geometry.cpp.
const double geometry::Quaternion::pi_over_360 = 0.0087266462599716477 [static, private] |
Definition at line 60 of file geometry.h.
double geometry::Quaternion::w |
Definition at line 57 of file geometry.h.
double geometry::Quaternion::x |
Definition at line 54 of file geometry.h.
double geometry::Quaternion::y |
Definition at line 55 of file geometry.h.
double geometry::Quaternion::z |
Definition at line 56 of file geometry.h.