#include <Vector.h>
Public Member Functions | |
Vector (void) | |
Vector (double X, double Y, double Z) | |
Vector (const Vector &v) | |
Vector (Vector spitze, Vector schaft) | |
Vector | operator- (void) const |
int | operator== (const Vector &v) const |
int | operator!= (const Vector &v) const |
Vector | operator+ (const Vector &v) const |
Vector | operator- (const Vector &v) const |
Vector | operator * (double fl) const |
Vector | operator/ (double fl) const |
void | copyToArray (double *rgfl) const |
double | length (void) const |
double | dotProduct (const Vector &b) |
Vector | crossProduct (const Vector &b) |
void | rotateX (double angle) |
void | rotateY (double angle) |
void | rotateZ (double angle) |
Static Public Member Functions | |
static double | clampTo (double min, double max, double Val) |
Public Attributes | |
double | x |
double | y |
double | z |
|
creates a zero vector |
|
creates a vector containing the given values |
|
creates a new vector from a given vector |
|
calculates the deviation of two vectors |
|
rotates a vector by its Z-coordinate |
|
copies the values of a vector into a given array |
|
calculates the dot product of a vector |
|
normalizes a vector |
|
returns the length of a vector |
|
multiplies each value of a vector by the value of f1 |
|
checks if two vectors are not equal |
|
adds two vectors |
|
subtracts two vectors |
|
multiplies every value by -1 |
|
divides each value of a vector by the value of f1 |
|
checks if two vectors are equal |
|
calculates the cross product of a vector |
|
rotates a vector by its X-coordinate |
|
rotates a vector by its Y-coordinate |
|
X-coordinate |
|
Y-coordinate |
|
Z-coordinate |