- Cal3D 0.11 API Reference - |
The plane class. More...
#include <vector.h>
Public Member Functions | |
float | eval (const CalVector &p) |
Transforms the vector instance by a matrix. More... | |
float | dist (CalVector &p) |
void | setPosition (const CalVector &p) |
void | setNormal (CalVector &p) |
Public Attributes | |
float | a |
float | b |
float | c |
float | d |
The plane class.
float CalPlane::eval | ( | const 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. |
This operator scales the vector instance by dividing its components by a specific factor.
d | The factor to divide the vector components by.Tests the equality of 2 vectors |
This operator checks to see if 2 vectors are equal
v | The vector to be tested against.Calculates the sum of two vectors. |
This operator calculates the sum of two vectors.
v | The first vector to be added. |
u | The second vector to be added. |
This operator calculates the difference of two vectors.
v | The first vector to be added. |
u | The second vector to be subtracted. |
This operator calculates the vector multiplied by a factor.
v | The vector to be scaled. |
d | The factor to multiply the vector with. |
This operator calculates the vector multiplied by a factor.
d | The factor to multiply the vector with. |
v | The vector to be scaled. |
This operator calculates the vector divided by a factor.
v | The vector to be scaled. |
d | The factor to divide the vector with. |
This operator calculates the dot product of two vectors.
v | The first vector. |
u | The second vector. |
This operator calculates the vector product of two vectors.
v | The first vector. |
u | The second vector. |
This function interpolates the vector instance to another vector by a given factor.
d | The blending factor in the range [0.0, 1.0]. |
v | The vector to be interpolated to.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.
This function normalizes the vector instance and returns its former length.
This function sets new values in the vector instance.
x | The x component. |
y | The y component. |
z | The z component. |