#include <Quaternion.h>
Public Methods | |
Quaternion () | |
Quaternion (const float a, const float b, const float c, const float d) | |
Quaternion (const double a, const double b, const double c, const double d) | |
Quaternion (const TVector< float > &v, const double f) | |
Quaternion (const TVector< float > &v) | |
Quaternion (const Quaternion &q) | |
Quaternion (const Matrix &m) | |
Quaternion (const double *p) | |
operator double * () | |
double & | operator[] (const int n) |
operator const double * () const | |
double | operator[] (const int n) const |
Quaternion | operator- () const |
void | operator= (const TVector< float > &vec) |
void | operator= (const Quaternion &q) |
void | operator= (const Matrix &m) |
void | operator= (const double *p) |
Quaternion | operator+ (const double f) const |
Quaternion | operator- (const double f) const |
Quaternion | operator * (const double f) const |
Quaternion | operator/ (const double f) const |
const Quaternion & | operator+= (const double f) |
const Quaternion & | operator-= (const double f) |
const Quaternion & | operator *= (const double f) |
const Quaternion & | operator/= (const double f) |
Quaternion | operator+ (const Quaternion &q) const |
Quaternion | operator- (const Quaternion &q) const |
Quaternion | operator * (const Quaternion &q) const |
const Quaternion & | operator+= (const Quaternion &q) |
const Quaternion & | operator-= (const Quaternion &q) |
const Quaternion & | operator *= (const Quaternion &q) |
double | magnitudeSquared () const |
double | magnitude () const |
void | normalize () |
Quaternion | conjugate () const |
Quaternion | inverse () const |
Quaternion | unitInverse () const |
TVector< float > | rotateVector (TVector< float > &v) const |
void | setAxisAngle (const TVector< float > &vAxis, const double fAngle) |
void | getAxisAngle (TVector< float > &vAxis, double &fAngle) const |
void | rotate (const Quaternion &q) |
void | rotate (const TVector< float > &vAxis, const double fAngle) |
TVector< float > | getViewAxis () const |
TVector< float > | getUpAxis () const |
TVector< float > | getRightAxis () const |
Public Attributes | |
double | v [4] |
Note: This class is not templatized because integral data types don't make sense and there's no need for double-precision.
Definition at line 57 of file Quaternion.h.
|
Definition at line 48 of file Quaternion.cpp. Referenced by conjugate, operator *, operator+, operator-, and operator/. |
|
Definition at line 51 of file Quaternion.cpp. References v. |
|
Definition at line 57 of file Quaternion.cpp. References v. |
|
|
|
|
|
Definition at line 65 of file Quaternion.cpp. |
|
Definition at line 66 of file Quaternion.cpp. |
|
Definition at line 67 of file Quaternion.cpp. |
|
Definition at line 105 of file Quaternion.cpp. References Quaternion, and v. Referenced by inverse, and unitInverse. |
|
|
|
Definition at line 150 of file Quaternion.cpp. Referenced by Teddy::Models::Model::pitch. |
|
Definition at line 139 of file Quaternion.cpp. Referenced by Teddy::Models::Model::heading. |
|
Definition at line 128 of file Quaternion.cpp. Referenced by Teddy::Materials::Light::applyLight, Teddy::Models::Model::foward, and Teddy::Models::Model::roll. |
|
Definition at line 106 of file Quaternion.cpp. References conjugate, and magnitudeSquared. |
|
Definition at line 101 of file Quaternion.cpp. References magnitudeSquared. Referenced by normalize. |
|
Definition at line 100 of file Quaternion.cpp. References v. |
|
Definition at line 102 of file Quaternion.cpp. References magnitude. |
|
Definition at line 264 of file Quaternion.cpp. References Quaternion, and v. |
|
Definition at line 84 of file Quaternion.cpp. References Quaternion, and v. |
|
Definition at line 97 of file Quaternion.cpp. |
|
Definition at line 88 of file Quaternion.cpp. References v. |
|
Definition at line 72 of file Quaternion.cpp. |
|
Definition at line 70 of file Quaternion.cpp. References v. |
|
Definition at line 92 of file Quaternion.cpp. References Quaternion, and v. |
|
Definition at line 82 of file Quaternion.cpp. References Quaternion, and v. |
|
Definition at line 95 of file Quaternion.cpp. References v. |
|
Definition at line 86 of file Quaternion.cpp. References v. |
|
Definition at line 93 of file Quaternion.cpp. References Quaternion, and v. |
|
Definition at line 83 of file Quaternion.cpp. References Quaternion, and v. |
|
Definition at line 74 of file Quaternion.cpp. |
|
Definition at line 96 of file Quaternion.cpp. References v. |
|
Definition at line 87 of file Quaternion.cpp. References v. |
|
Definition at line 85 of file Quaternion.cpp. References Quaternion, and v. |
|
Definition at line 89 of file Quaternion.cpp. References v. |
|
Definition at line 79 of file Quaternion.cpp. References v. |
|
Definition at line 223 of file Quaternion.cpp. References v. |
|
Definition at line 78 of file Quaternion.cpp. References v. |
|
|
|
Definition at line 73 of file Quaternion.cpp. References v. |
|
Definition at line 71 of file Quaternion.cpp. References v. |
|
|
|
Definition at line 109 of file Quaternion.cpp. Referenced by Teddy::Models::Model::heading, Teddy::Models::Model::pitch, and Teddy::Models::Model::roll. |
|
|
|
|
|
Definition at line 107 of file Quaternion.cpp. References conjugate. |
|
Definition at line 59 of file Quaternion.h. Referenced by conjugate, getRightAxis, getUpAxis, getViewAxis, magnitudeSquared, operator *, operator *=, operator double *, operator+, operator+=, operator-, operator-=, operator/, operator/=, operator=, operator[], and Quaternion. |