Class tgQuaternion. More...
#include <tgQuaternion.h>
Public Member Functions | |
void | fromAxis (const vec3 &v, float angle) |
void | fromEuler (float pitch, float yaw, float roll) |
void | fromMatrix (mat3 m) |
void | fromMatrix (mat4 m) |
void | getAxisAngle (vec3 &axis, float &angle) const |
tgQuaternion | getConjugate () const |
mat3 | getMatrix3 () const |
mat4 | getMatrix4 () const |
void | normalise () |
tgQuaternion | operator* (const tgQuaternion &rq) |
tgQuaternion | operator* (const float f) |
vec3 | operator* (const vec3 &vec) |
tgQuaternion | operator+ (const tgQuaternion &q2) const |
tgQuaternion | operator- (const tgQuaternion &q2) const |
void | print () const |
tgQuaternion () | |
tgQuaternion (float x, float y, float z, float w) | |
Public Attributes | |
float | w |
float | x |
float | y |
float | z |
Class tgQuaternion.
Definition at line 21 of file tgQuaternion.h.
Definition at line 7 of file tgQuaternion.cpp.
tgQuaternion::tgQuaternion | ( | float | x, |
float | y, | ||
float | z, | ||
float | w | ||
) |
Definition at line 14 of file tgQuaternion.cpp.
void tgQuaternion::fromAxis | ( | const vec3 & | v, |
float | angle | ||
) |
Definition at line 96 of file tgQuaternion.cpp.
void tgQuaternion::fromEuler | ( | float | pitch, |
float | yaw, | ||
float | roll | ||
) |
Definition at line 111 of file tgQuaternion.cpp.
void tgQuaternion::fromMatrix | ( | mat3 | m | ) |
Definition at line 147 of file tgQuaternion.cpp.
void tgQuaternion::fromMatrix | ( | mat4 | m | ) |
Definition at line 136 of file tgQuaternion.cpp.
void tgQuaternion::getAxisAngle | ( | vec3 & | axis, |
float & | angle | ||
) | const |
Definition at line 218 of file tgQuaternion.cpp.
tgQuaternion tgQuaternion::getConjugate | ( | ) | const |
Definition at line 38 of file tgQuaternion.cpp.
mat3 tgQuaternion::getMatrix3 | ( | ) | const |
Definition at line 191 of file tgQuaternion.cpp.
mat4 tgQuaternion::getMatrix4 | ( | ) | const |
Definition at line 158 of file tgQuaternion.cpp.
void tgQuaternion::normalise | ( | ) |
Definition at line 24 of file tgQuaternion.cpp.
tgQuaternion tgQuaternion::operator* | ( | const tgQuaternion & | rq | ) |
Definition at line 65 of file tgQuaternion.cpp.
tgQuaternion tgQuaternion::operator* | ( | const float | f | ) |
Definition at line 73 of file tgQuaternion.cpp.
Definition at line 79 of file tgQuaternion.cpp.
tgQuaternion tgQuaternion::operator+ | ( | const tgQuaternion & | q2 | ) | const |
Definition at line 43 of file tgQuaternion.cpp.
tgQuaternion tgQuaternion::operator- | ( | const tgQuaternion & | q2 | ) | const |
Definition at line 54 of file tgQuaternion.cpp.
void tgQuaternion::print | ( | ) | const |
Definition at line 228 of file tgQuaternion.cpp.
float TomGine::tgQuaternion::w |
Definition at line 27 of file tgQuaternion.h.
float TomGine::tgQuaternion::x |
Definition at line 27 of file tgQuaternion.h.
float TomGine::tgQuaternion::y |
Definition at line 27 of file tgQuaternion.h.
float TomGine::tgQuaternion::z |
Definition at line 27 of file tgQuaternion.h.