| - Cal3D 0.9 API Reference - |
#include <quaternion.h>
Public Methods | |
| CalQuaternion () | |
| Constructs the quaternion instance. More... | |
| CalQuaternion (const CalQuaternion &q) | |
| Constructs the quaternion instance. More... | |
| CalQuaternion (float qx, float qy, float qz, float qw) | |
| Constructs the quaternion instance. More... | |
| ~CalQuaternion () | |
| Destructs the quaternion instance. More... | |
| float & | operator[] (unsigned int index) |
| Provides access to the components of the quaternion instance. More... | |
| const float & | operator[] (unsigned int index) const |
| Provides access to the components of the quaternion instance. More... | |
| void | operator= (const CalQuaternion &q) |
| Equates the quaternion instance with another quaternion. More... | |
| void | operator *= (const CalQuaternion &q) |
| Multiplies another quaternion to the quaternion instance. More... | |
| void | operator *= (const CalVector &v) |
| Multiplies a vector to the quaternion instance. More... | |
| void | blend (float d, const CalQuaternion &q) |
| Interpolates the quaternion instance to another quaternion. More... | |
| void | clear () |
| Clears the quaternion instance. More... | |
| void | conjugate () |
| Conjugates the quaternion instance. More... | |
| void | invert () |
| Inverts the quaternion instance. More... | |
| void | set (float qx, float qy, float qz, float qw) |
| Sets new values. More... | |
Public Attributes | |
| float | x |
| float | y |
| float | z |
| float | w |
Friends | |
| CAL3D_API CalQuaternion | operator * (const CalQuaternion &q, const CalQuaternion &r) |
| Calculates the product of two quaternions. More... | |
| CAL3D_API CalQuaternion | shortestArc (const CalVector &from, const CalVector &to) |
| Computes the shortest arc quaternion that will rotate one vector to another. More... | |
|
|
Constructs the quaternion instance. This function is the default constructor of the quaternion instance. |
|
|
Constructs the quaternion instance. This function is a constructor of the quaternion instance.
|
|
||||||||||||||||||||
|
Constructs the quaternion instance. This function is a constructor of the quaternion instance.
|
|
|
Destructs the quaternion instance. This function is the destructor of the quaternion instance. |
|
||||||||||||
|
Interpolates the quaternion instance to another quaternion. This function interpolates the quaternion instance to another quaternion by a given factor.
|
|
|
Clears the quaternion instance. This function clears the quaternion instance. |
|
|
Conjugates the quaternion instance. This function conjugates the quaternion instance. |
|
|
Inverts the quaternion instance. This function inverts the quaternion instance. |
|
|
Multiplies a vector to the quaternion instance. This operator multiplies a vector to the quaternion instance.
|
|
|
Multiplies another quaternion to the quaternion instance. This operator multiplies another quaternion to the quaternion instance.
|
|
|
Equates the quaternion instance with another quaternion. This operator equates the quaternion instance with another quaternion.
|
|
|
Provides access to the components of the quaternion instance. This function provides read access to the three components of the quaternion instance.
|
|
|
Provides access to the components of the quaternion instance. This function provides read and write access to the three components of the quaternion instance.
|
|
||||||||||||||||||||
|
Sets new values. This function sets new values in the quaternion instance.
|
|
||||||||||||
|
Calculates the product of two quaternions. This operator calculates the product of two quaternions.
|
|
||||||||||||
|
Computes the shortest arc quaternion that will rotate one vector to another. This function finds the shortest arc quaternion. Based on equations from "Game Programming Gems" - chapter 2.10
|
1.2.14
© 1997-2001
Dimitri van Heesch