- Cal3D 0.11 API Reference - |
The vector class. More...
#include <vector.h>
Public Member Functions | |
CalVector (const CalVector &v) | |
CalVector (float vx, float vy, float vz) | |
float & | operator[] (unsigned int i) |
const float & | operator[] (unsigned int i) const |
void | operator= (const CalVector &v) |
void | operator+= (const CalVector &v) |
void | operator-= (const CalVector &v) |
void | operator*= (const float d) |
void | operator*= (const CalQuaternion &q) |
Constructs the vector instance. More... | |
void | operator*= (const CalMatrix &m) |
void | operator/= (const float d) |
bool | operator== (const CalVector &v) const |
bool | operator!= (const CalVector &v) const |
void | blend (float d, const CalVector &v) |
void | clear () |
float | length () const |
float | normalize () |
void | set (float vx, float vy, float vz) |
Public Attributes | |
float | x |
float | y |
float | z |
The vector class.
void CalVector::operator*= | ( | const CalQuaternion & | q | ) |
Constructs the vector instance.
This function is the default constructor of the vector instance.Constructs the vector instance.
This function is a constructor of the vector instance.
v | The vector to construct this vector instance from.Constructs the vector instance. |
This function is a constructor of the vector instance.
vx | The x component. |
vy | The y component. |
vz | The z component.Destructs the vector instance. |
This function is the destructor of the vector instance.Provides access to the components of the vector instance.
This function provides read and write access to the three components of the vector instance.
i | The index to the specific component. |
This function provides read access to the three components of the vector instance.
i | The index to the specific component. |
This operator equates the vector instance with another vector.
v | The vector to equate the vector instance with.Adds another vector to the vector instance. |
This operator adds another vector to the vector instance.
v | The vector to be added.Subtracts another vector from the vector instance. |
This operator subtracts another vector from the vector instance.
v | The vector to be subtracted.Scales the vector instance. |
This operator scales the vector instance by multiplying its components by a specific factor.
d | The factor to multiply the vector components by.Transforms the vector instance by a quaternion. |
This function transforms the vector instance by a given quaternion.
q | The quaternion to be used for the transformation. |