Mount Fuji Engine  0.8b
MFQuaternion Class Reference

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...

MFQuaternionoperator= (const MFQuaternion &v)
Assignment operator. More...

MFQuaternion operator+ (const MFQuaternion &q) const

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...

MFQuaternionoperator+= (const MFQuaternion &q)
Plus-equals operator. More...

MFQuaternionoperator-= (const MFQuaternion &q)
Minus-equals operator. More...

MFQuaternionoperator*= (float f)
Scale-equals operator. More...

MFQuaternionoperator*= (const MFQuaternion &q)
Quaternion multiply-equals operator. More...

float Dot (const MFQuaternion &q) const
Quaternion dot product. More...

MFQuaternionMultiply (const MFQuaternion &q)
Perform a quaternion multiply. More...

MFQuaternionMultiply (const MFQuaternion &q1, const MFQuaternion &q2)
Perform a quaternion multiply. More...

MFQuaternionConjugate (const MFQuaternion &q)
Find the conjugate of a quaternion. More...

MFQuaternionConjugate ()
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...

MFQuaternionSlerp (const MFQuaternion &q1, const MFQuaternion &q2, float t)
Slerp between 2 quaternions. More...

MFQuaternionSlerp (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 }.

## Detailed Description

Quaternion class used throughout Fuji. Optimised for each platform.

The documentation for this class was generated from the following file: