ALBA
|
#include <albaVect3d.h>
Public Member Functions | |
albaVect3d () | |
albaVect3d (double x, double y, double z) | |
albaVect3d (double *values) | |
albaVect3d | Abs (void) |
void | Setzero (void) |
void | SetValues (double *values) |
void | SetValues (double x, double y, double z) |
double | Magnitude (void) |
void | Normalize (void) |
albaVect3d | Normal (void) |
double | Distance (albaVect3d &vector) |
double | Distance2 (albaVect3d &vector) |
double | Dot (albaVect3d &vector) |
albaVect3d | Cross (albaVect3d &vector) |
double | GetX () |
double | GetY () |
double | GetZ () |
void | SetX (double x) |
void | SetY (double y) |
void | SetZ (double z) |
double * | GetVect () |
void | GetVect (double *vect) |
int | operator== (albaVect3d &vect) |
int | operator== (double *vect) |
albaVect3d | operator+ (albaVect3d &vect) |
albaVect3d | operator+ (double *vect) |
albaVect3d | operator- (albaVect3d &vect) |
albaVect3d | operator- (double *vect) |
albaVect3d | operator* (double num) |
albaVect3d | operator/ (double num) |
albaVect3d & | operator+= (albaVect3d &vect) |
albaVect3d & | operator+= (double *vect) |
albaVect3d & | operator-= (albaVect3d &vect) |
albaVect3d & | operator-= (double *vect) |
albaVect3d & | operator*= (double val) |
albaVect3d & | operator/= (double val) |
double & | operator[] (int pos) |
double | AngleBetweenVectors (albaVect3d &vect, bool getMinAngle=true) |
Static Public Member Functions | |
static albaVect3d | Slerp (albaVect3d start, albaVect3d end, double percent) |
Class Name: albaVect3d.
High optimized class for 3-Dimensional vectors management.
Definition at line 34 of file albaVect3d.h.
albaVect3d::albaVect3d | ( | ) |
Default constructor, init to zero.
albaVect3d::albaVect3d | ( | double | x, |
double | y, | ||
double | z | ||
) |
Constructor, sets the vector values.
albaVect3d::albaVect3d | ( | double * | values | ) |
Constructor, sets the vector values.
albaVect3d albaVect3d::Abs | ( | void | ) |
Return a vector whit the abs of each element.
void albaVect3d::Setzero | ( | void | ) |
Sets the vector to zero.
void albaVect3d::SetValues | ( | double * | values | ) |
Sets the vector values.
void albaVect3d::SetValues | ( | double | x, |
double | y, | ||
double | z | ||
) |
Sets the vector values.
double albaVect3d::Magnitude | ( | void | ) |
Returns the magnitude of the vector.
void albaVect3d::Normalize | ( | void | ) |
Normalize the components of the vector.
albaVect3d albaVect3d::Normal | ( | void | ) |
Return the normal of the vector (the original vector is not modified()
double albaVect3d::Distance | ( | albaVect3d & | vector | ) |
Return the distance between the vectors.
double albaVect3d::Distance2 | ( | albaVect3d & | vector | ) |
Return the distance2 (quadratic distance) between the vectors.
double albaVect3d::Dot | ( | albaVect3d & | vector | ) |
Return the dot product between the vectors.
albaVect3d albaVect3d::Cross | ( | albaVect3d & | vector | ) |
Return the cross product between the vectors.
|
inline |
Return the Value of the X-element.
Definition at line 81 of file albaVect3d.h.
|
inline |
Return the Value of the Y-element.
Definition at line 84 of file albaVect3d.h.
|
inline |
Return the Value of the Z-element.
Definition at line 87 of file albaVect3d.h.
|
inline |
the Value of the X-element
Definition at line 90 of file albaVect3d.h.
|
inline |
the Value of the Y-element
Definition at line 93 of file albaVect3d.h.
|
inline |
the Value of the Z-element
Definition at line 96 of file albaVect3d.h.
|
inline |
Return a pointer to the vector of double.
Definition at line 99 of file albaVect3d.h.
|
inline |
Return a pointer to the vector of double.
Definition at line 102 of file albaVect3d.h.
int albaVect3d::operator== | ( | albaVect3d & | vect | ) |
Operator: Return true if the vectors are equals.
int albaVect3d::operator== | ( | double * | vect | ) |
Operator: Return true if the vectors are equals.
albaVect3d albaVect3d::operator+ | ( | albaVect3d & | vect | ) |
Operator: Return the sum of the vectors.
albaVect3d albaVect3d::operator+ | ( | double * | vect | ) |
Operator: Return the sum of the vectors.
albaVect3d albaVect3d::operator- | ( | albaVect3d & | vect | ) |
Operator: Return the difference of the vectors.
albaVect3d albaVect3d::operator- | ( | double * | vect | ) |
Operator: Return the difference of the vectors.
albaVect3d albaVect3d::operator* | ( | double | num | ) |
Operator: Return the scalar multiply.
albaVect3d albaVect3d::operator/ | ( | double | num | ) |
Operator: Return the scalar division.
albaVect3d & albaVect3d::operator+= | ( | albaVect3d & | vect | ) |
Operator: Sets the values to the sum between the vectors.
albaVect3d & albaVect3d::operator+= | ( | double * | vect | ) |
Operator: Sets the values to the sum between the vectors.
albaVect3d & albaVect3d::operator-= | ( | albaVect3d & | vect | ) |
Operator: Sets the values to the difference between the vectors.
albaVect3d & albaVect3d::operator-= | ( | double * | vect | ) |
Operator: Sets the values to the difference between the vectors.
albaVect3d & albaVect3d::operator*= | ( | double | val | ) |
Operator: Sets the values to the product with the scalar.
albaVect3d & albaVect3d::operator/= | ( | double | val | ) |
Operator: Sets the values to the division with the scalar.
double & albaVect3d::operator[] | ( | int | pos | ) |
Operator: Gets the vect values with *double style ie: vect[0]==vect.GetX()
double albaVect3d::AngleBetweenVectors | ( | albaVect3d & | vect, |
bool | getMinAngle = true |
||
) |
Returns the angle between two vectors.
|
static |
Do a spherical linear interpolation of two vectors.