#include <CP3D.h>
Public Member Functions | |
CP3D () | |
CP3D (double rdX, double rdY, double rdZ) | |
CP3D (const CP3D &Point) | |
operator CP4D () const | |
const CP3D & | operator= (const CP3D &) |
int | operator== (const CP3D &) const |
int | operator!= (const CP3D &) const |
CP3D & | operator+= (const CV3D &) |
CP3D & | operator-= (const CV3D &) |
CP3D & | operator *= (const CV3D &) |
CP3D & | operator *= (double) |
CP3D & | operator/= (double) |
CP3D | operator+ (const CV3D &) const |
CP3D | operator+ (const CP3D &) const |
CP3D | operator- (const CV3D &) const |
CV3D | operator- (const CP3D &) const |
CP3D | operator * (const CV3D &) const |
CP3D | operator * (double) const |
CP3D | operator/ (const CV3D &) const |
CP3D | operator/ (double) 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 |
CV3D | getCV3D () 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) |
void | print () const |
Static Public Attributes | |
static double | epsilon = DOUBLE_EPSILON |
Protected Attributes | |
double | m_ard [3] |
Friends | |
CP3D | AffinComb (const CP3D &, double, const CP3D &) |
CP3D | AffinComb3 (double r, const CP3D &R, double s, const CP3D &S, double t, const CP3D T) |
double | dist (const CP3D &, const CP3D &) |
double | quaddist (const CP3D &, const CP3D &) |
CP3D | Min (const CP3D &, const CP3D &) |
CP3D | Max (const CP3D &, const CP3D &) |
CP3D | operator * (double, const CP3D &) |
CP3D | MidPoint (const CP3D &, const CP3D &) |
ostream & | operator<< (ostream &, const CP3D &) |
istream & | operator>> (istream &, CP3D &) |
|
Default constructor. The default value of the instantiated point will be (0.0,0.0,0.0). |
|
Construct new point. The value of the point will be (rdX, rdY, rdZ). |
|
Copy constructor. The parameters will simply be copied. |
|
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). |
|
Converts a point to a vector. It's implemented as 'get'-method to prevent implicit casting by the compiler. |
|
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 x-coordinate of the point. |
|
Returns the y-coordinate of the point. |
|
Returns the z-coordinate of the point. |
|
Multiplies a point by a scalar. |
|
Multiplies a point by a vector. |
|
Multiplies a point by a scalar. |
|
Multiplies a point by a vector. |
|
Cast operator to convert CP3D points to CP4D points. Each component is devided by the fourth component. |
|
Compares to points for not being equal. Same as operator== but inverted.
|
|
Adds a point to a point. |
|
Adds a vector to a point. |
|
Adds a vector to this point. |
|
Substracts a point from a point. |
|
Substracts a vector from a point. |
|
Subtracts a vector from this point. |
|
Divides a point by a scalar. |
|
Divides a point by a vector. |
|
Divides a point by a scalar. |
|
Assign one point to another. |
|
Compares to points for being equal. The result will be 'true'(1) if the two point are indentically up to <= CP3D::epsilon for each component. Otherwise 'false'(0) will be returned. |
|
Same as above but does not alter anything. |
|
Returns the i-th component of the point. The index goes from 0 to 2, 0 stands for the x-coordinate, 1 for the y-coordinate and so on. |
|
Prints a point to the standard output. |
|
Set the values of the point. The value of the point will be (rdX, rdY, rdZ). |
|
Sets the x-coordinate of the point to 'rdX'. |
|
Sets the y-coordinate of the point to 'rdX'. |
|
Sets the z-coordinate of the point to 'rdX'. |
|
Returns the affine combination of the points and vectors. |
|
Returns the affine combination of the points and vectors. |
|
Returns the distance between two points. |
|
Returns the maximum of all components of two points. |
|
Returns the point in the middle between two points. |
|
Returns the minimum of all components of two points. |
|
Returns a point being the result of multiplying a scalar and a point. |
|
Same as above. But more useful for streams. |
|
Reads a point from the given stream. |
|
Returns the square of the distance between two points. |
|
|
|
|