| - Cal3D 0.9 API Reference - |
#include <vector.h>
Public Methods | |
| CalVector () | |
| Constructs the vector instance. More... | |
| CalVector (const CalVector &v) | |
| Constructs the vector instance. More... | |
| CalVector (float vx, float vy, float vz) | |
| Constructs the vector instance. More... | |
| ~CalVector () | |
| Destructs the vector instance. More... | |
| float & | operator[] (unsigned int i) |
| Provides access to the components of the vector instance. More... | |
| const float & | operator[] (unsigned int i) const |
| Provides access to the components of the vector instance. More... | |
| void | operator= (const CalVector &v) |
| Equates the vector instance with another vector. More... | |
| void | operator+= (const CalVector &v) |
| Adds another vector to the vector instance. More... | |
| void | operator-= (const CalVector &v) |
| Subtracts another vector from the vector instance. More... | |
| void | operator *= (const float d) |
| Scales the vector instance. More... | |
| void | operator *= (const CalQuaternion &q) |
| Transforms the vector instance by a quaternion. More... | |
| void | operator *= (const CalMatrix &m) |
| Transforms the vector instance by a matrix. More... | |
| void | operator/= (const float d) |
| Scales the vector instance. More... | |
| bool | operator== (const CalVector &v) |
| Tests the equality of 2 vectors. More... | |
| void | blend (float d, const CalVector &v) |
| Interpolates the vector instance to another vector. More... | |
| void | clear () |
| Clears the vector instance. More... | |
| float | length () |
| Returns the length of the vector instance. More... | |
| float | normalize () |
| Normalizes the vector instance. More... | |
| void | set (float vx, float vy, float vz) |
| Sets new values. More... | |
Public Attributes | |
| float | x |
| float | y |
| float | z |
Friends | |
| CAL3D_API CalVector | operator+ (const CalVector &v, const CalVector &u) |
| Calculates the sum of two vectors. More... | |
| CAL3D_API CalVector | operator- (const CalVector &v, const CalVector &u) |
| Calculates the difference of two vectors. More... | |
| CAL3D_API CalVector | operator * (const CalVector &v, const float d) |
| Calculates a scaled vector. More... | |
| CAL3D_API CalVector | operator * (const float d, const CalVector &v) |
| Calculates a scaled vector. More... | |
| CAL3D_API CalVector | operator/ (const CalVector &v, const float d) |
| Calculates a scaled vector. More... | |
| CAL3D_API float | operator * (const CalVector &v, const CalVector &u) |
| Calculates the dot product of two vectors. More... | |
| CAL3D_API CalVector | operator% (const CalVector &v, const CalVector &u) |
| Calculates the vector product of two vectors. More... | |
|
|
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.
|
|
||||||||||||||||
|
Constructs the vector instance. This function is a constructor of the vector instance.
|
|
|
Destructs the vector instance. This function is the destructor of the vector instance. |
|
||||||||||||
|
Interpolates the vector instance to another vector. This function interpolates the vector instance to another vector by a given factor.
|
|
|
Clears the vector instance. This function clears the vector instance. |
|
|
Returns the length of the vector instance. This function returns the length of the vector instance.
|
|
|
Normalizes the vector instance. This function normalizes the vector instance and returns its former length.
|
|
|
Transforms the vector instance by a matrix. This function transforms the vector instance by a given matrix.
|
|
|
Transforms the vector instance by a quaternion. This function transforms the vector instance by a given quaternion.
|
|
|
Scales the vector instance. This operator scales the vector instance by multiplying its components by a specific factor.
|
|
|
Adds another vector to the vector instance. This operator adds another vector to the vector instance.
|
|
|
Subtracts another vector from the vector instance. This operator subtracts another vector from the vector instance.
|
|
|
Scales the vector instance. This operator scales the vector instance by dividing its components by a specific factor.
|
|
|
Equates the vector instance with another vector. This operator equates the vector instance with another vector.
|
|
|
Tests the equality of 2 vectors. This operator checks to see if 2 vectors are equal
|
|
|
Provides access to the components of the vector instance. This function provides read access to the three components 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.
|
|
||||||||||||||||
|
Sets new values. This function sets new values in the vector instance.
|
|
||||||||||||
|
Calculates the dot product of two vectors. This operator calculates the dot product of two vectors.
|
|
||||||||||||
|
Calculates a scaled vector. This operator calculates the vector multiplied by a factor.
|
|
||||||||||||
|
Calculates a scaled vector. This operator calculates the vector multiplied by a factor.
|
|
||||||||||||
|
Calculates the vector product of two vectors. This operator calculates the vector product of two vectors.
|
|
||||||||||||
|
Calculates the sum of two vectors. This operator calculates the sum of two vectors.
|
|
||||||||||||
|
Calculates the difference of two vectors. This operator calculates the difference of two vectors.
|
|
||||||||||||
|
Calculates a scaled vector. This operator calculates the vector divided by a factor.
|
1.2.14
© 1997-2001
Dimitri van Heesch