- Cal3D 0.11 API Reference - |
#include <vector.h>
Public Member Functions | |
float | eval (CalVector &p) |
Transforms the vector instance by a matrix. | |
float | dist (CalVector &p) |
void | setPosition (CalVector &p) |
void | setNormal (CalVector &p) |
Public Attributes | |
float | a |
float | b |
float | c |
float | d |
float CalPlane::eval | ( | CalVector & | p | ) |
Transforms the vector instance by a matrix.
This function transforms the vector instance by a given matrix.
m | The matrix to be used for the transformation. Scales the vector instance. |
d | The factor to divide the vector components by. Tests the equality of 2 vectors |
v | The vector to be tested against. Calculates the sum of two vectors. |
v | The first vector to be added. | |
u | The second vector to be added. |
v | The first vector to be added. | |
u | The second vector to be subtracted. |
v | The vector to be scaled. | |
d | The factor to multiply the vector with. |
d | The factor to multiply the vector with. | |
v | The vector to be scaled. |
v | The vector to be scaled. | |
d | The factor to divide the vector with. |
v | The first vector. | |
u | The second vector. |
v | The first vector. | |
u | The second vector. |
d | The blending factor in the range [0.0, 1.0]. | |
v | The vector to be interpolated to. Clears the vector instance. |
This function returns the length of the vector instance.
x | The x component. | |
y | The y component. | |
z | The z component. |