#include <CV3D.h>
Public Member Functions | |
| CV3D (void) | |
| CV3D (double rdX, double rdY, double rdZ) | |
| CV3D (const CV3D &Vector) | |
| ~CV3D (void) | |
| operator CV4D () const | |
| const CV3D & | operator= (const CV3D &) |
| bool | operator== (const CV3D &) const |
| bool | operator!= (const CV3D &) const |
| CV3D & | operator+= (const CV3D &) |
| CV3D & | operator-= (const CV3D &) |
| CV3D & | operator *= (double) |
| CV3D & | operator/= (double) |
| CV3D | operator+ (const CV3D &) const |
| CV3D | operator- (const CV3D &) const |
| CV3D | operator- (void) const |
| double | operator * (const CV3D &) const |
| CV3D | operator * (double) const |
| CV3D | operator/ (double) const |
| CV3D | operator| (const CV3D &) const |
| double & | operator[] (int i) |
| double | operator[] (int i) const |
| double | getMinComponent (void) const |
| double | getAbsMinComponent (void) const |
| double | getMaxComponent (void) const |
| double | getAbsMaxComponent (void) const |
| int | getMinComponentCoord (void) const |
| int | getAbsMinComponentCoord (void) const |
| int | getMaxComponentCoord (void) const |
| int | getAbsMaxComponentCoord (void) const |
| double | getX (void) const |
| double | getY (void) const |
| double | getZ (void) const |
| void | setX (double rdX) |
| void | setY (double rdY) |
| void | setZ (double rdZ) |
| void | setCoord (double rdX, double rdY, double rdZ) |
| double | getNorm (void) const |
| void | normalize (void) |
| CV3D | getNormalized (void) const |
| void | print (void) const |
Static Public Attributes | |
| double | epsilon = DOUBLE_EPSILON |
Protected Attributes | |
| double | m_ard [3] |
Friends | |
| CV3D | operator * (double, const CV3D &) |
| ostream & | operator<< (ostream &, const CV3D &) |
| istream & | operator>> (istream &, CV3D &) |
|
|
Default constructor. The default value of the instantiated vector will be (0.0,0.0,0.0). |
|
||||||||||||||||
|
Construct new vector. The value of the vector will be (rdX, rdY, rdZ). |
|
|
Copyconstructor. Initializes the new vector with the vector passed in 'v'. |
|
|
Default destructor. |
|
|
Returns the value of the maximal point component. |
|
|
Returns the coordinate index of the maximum point component (using fabs). |
|
|
Returns the value of the minimal point component. |
|
|
Returns the coordinate index of the minial point component (using fabs). |
|
|
Returns the value of the maximal point component. |
|
|
Returns the coordinate index of the maximum point component. |
|
|
Returns the value of the minimal point component. |
|
|
Returns the coordinate index of the minial point component. |
|
|
Returns the euclidian norm of the vector. |
|
|
Returns the normalized vector. |
|
|
Returns the x-coordinate of the vector. |
|
|
Returns the y-coordinate of the vector. |
|
|
Returns the z-coordinate of the vector. |
|
|
Normalizes the vector. |
|
|
Multiplication of a vector with a scalar. |
|
|
Scalar multiplication of two vectors. The result will be returned. |
|
|
Multiplies a vector with a scalar. |
|
|
Cast operator to convert CV3D vectors to CV4D vectors. Initializes the new vector with this vector. The component 'w' is set to 1.0. |
|
|
Compares to vectors. Same as above. Only the result is negated.
|
|
|
Adds two vectors. The sum will be returned. |
|
|
Adds another vector to this vector. |
|
|
Negates the vector. |
|
|
Subtracts two vectors. The difference will be returned. |
|
|
Subtracts another vector from this vector. |
|
|
Division of a vector with a scalar. |
|
|
Multiplies a vector with a scalar. |
|
|
Assign one vector to another. |
|
|
Compares to vectors. The result will be 'true' if the two vector are indentically in each coefficient. Otherwise 'false' will be returned. |
|
|
Same as above but for constant vectors. |
|
|
Returns the i-th coefficient or the vector. The index goes from 0 to 3, so 0 stands for the x-coordinate, 1 for the y-coordinate and so on. |
|
|
crossproduct. |
|
|
Prints a vector to the standard output. |
|
||||||||||||||||
|
Set the value of the vector. The value of the vector will be (rdX, rdY, rdZ, rdW). |
|
|
Sets the x-coordinate of the vector to 'x'. |
|
|
Sets the y-coordinate of the vector to 'y'. |
|
|
Sets the z-coordinate of the vector to 'z'. |
|
||||||||||||
|
Multiplication of a scalar with a vector. |
|
||||||||||||
|
Same as above. But more useful for streams. |
|
||||||||||||
|
Reads a vector from the given stream. |
|
|
documentation stuff
|
|
|
|
1.3-rc3