| - Cal3D 0.11 API Reference - |
#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. | |
| 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 |
| 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. |
| vx | The x component. | |
| vy | The y component. | |
| vz | The z component. Destructs 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. |
| i | The index to the specific component. |
| v | The vector to equate the vector instance with. Adds another vector to the vector instance. |
| v | The vector to be added. Subtracts another vector from the vector instance. |
| v | The vector to be subtracted. Scales the vector instance. |
| d | The factor to multiply the vector components by. Transforms the vector instance by a quaternion. |
| q | The quaternion to be used for the transformation. |