Mount Fuji Engine
0.8b
|
Quaternion class to perform various quaternion operations. More...
Public Member Functions | |
bool | operator== (const MFQuaternion &q) const |
Comparison operator. More... | |
bool | operator!= (const MFQuaternion &q) const |
Not-equals operator. More... | |
void | SetIdentity () |
Set quaternion to the identity quaternion. More... | |
void | Set (float x, float y, float z, float w) |
Set each component of a quaternion. More... | |
MFQuaternion & | operator= (const MFQuaternion &v) |
Assignment operator. More... | |
MFQuaternion | operator+ (const MFQuaternion &q) const |
Addition operator. More... | |
MFQuaternion | operator- (const MFQuaternion &q) const |
Subtraction operator. More... | |
MFQuaternion | operator* (float f) const |
Scale operator. More... | |
MFQuaternion | operator* (const MFQuaternion &q) const |
Quaternion multiply operator. More... | |
MFQuaternion & | operator+= (const MFQuaternion &q) |
Plus-equals operator. More... | |
MFQuaternion & | operator-= (const MFQuaternion &q) |
Minus-equals operator. More... | |
MFQuaternion & | operator*= (float f) |
Scale-equals operator. More... | |
MFQuaternion & | operator*= (const MFQuaternion &q) |
Quaternion multiply-equals operator. More... | |
float | Dot (const MFQuaternion &q) const |
Quaternion dot product. More... | |
MFQuaternion & | Multiply (const MFQuaternion &q) |
Perform a quaternion multiply. More... | |
MFQuaternion & | Multiply (const MFQuaternion &q1, const MFQuaternion &q2) |
Perform a quaternion multiply. More... | |
MFQuaternion & | Conjugate (const MFQuaternion &q) |
Find the conjugate of a quaternion. More... | |
MFQuaternion & | Conjugate () |
Calculate the quaternion conjugate. More... | |
MFVector | Apply (const MFVector &v) const |
Apply the quaternion to a vector. More... | |
operator float * () | |
float pointer cast operator. More... | |
operator float * () const | |
const float pointer cast operator. More... | |
MFQuaternion & | Slerp (const MFQuaternion &q1, const MFQuaternion &q2, float t) |
Slerp between 2 quaternions. More... | |
MFQuaternion & | Slerp (const MFQuaternion &q, float t) |
Slerp between this and another quaternion. More... | |
const char * | ToString () const |
Convert quaternion to a string. More... | |
Static Public Attributes | |
static const MFQuaternion | identity |
Constant IDENTITY quaternion { 0, 0, 0, 1 }. | |
Quaternion class used throughout Fuji. Optimised for each platform.