#include <Point.h>
Public Member Functions | |
double | Distance () const |
Distance from origin. | |
double | Distance (const Point &) const |
Distance from point. | |
operator const double * () const | |
Cast to C array pointer. | |
operator double * () | |
Cast to C array pointer. | |
int | operator!= (const Point &) const |
Comparison operator != (if USE_STL is defined, negate == operator) | |
double & | operator() (int i) |
Get reference to i-th point coordinate. | |
const double & | operator() (int i) const |
Get const reference to i-th point coordinate. | |
Point | operator* (const Point &) const |
Return result of point multiplication. | |
Point | operator* (const Matrix &) const |
Return result from Matrix multiplication. | |
Point & | operator*= (const Point &) |
Multiplication operator for point. | |
Point & | operator*= (double) |
Multiplication with double. | |
Point & | operator*= (const Vector3 &) |
Multiplication operator for vectors (componentwise) | |
Point & | operator*= (const Vector &) |
Multiplication operator for vectors (componentwise) | |
Point & | operator*= (const Matrix &) |
Point multiplication operator for matrices. | |
Point | operator+ (const Point &) const |
Return result of point addition. | |
Point & | operator+= (const Point &) |
Addition operator for point. | |
Point & | operator+= (double) |
Addition of double. | |
Point & | operator+= (const Vector3 &) |
Addition operator for vectors. | |
Point & | operator+= (const Vector &) |
Addition operator for vectors. | |
Point | operator- (const Point &) const |
Return result of point substraction. | |
Point & | operator-= (const Point &) |
Substraction operator for point. | |
Point & | operator-= (double) |
Substraction of double. | |
Point & | operator-= (const Vector3 &) |
Substraction operator for vectors. | |
Point & | operator-= (const Vector &) |
Substraction operator for vectors. | |
Point | operator/ (const Point &) const |
Return result of point division. | |
Point & | operator/= (const Point &) |
Division operator for point. | |
Point & | operator/= (double) |
Division by double. | |
Point & | operator/= (const Vector3 &) |
Division operator for vectors (componentwise) | |
Point & | operator/= (const Vector &) |
Division operator for vectors (componentwise) | |
int | operator< (const Point &) const |
Comparison operator <. | |
Point & | operator= (const Point &) |
Copy operator for point. | |
Point & | operator= (double) |
Assign scalar value to all coordinates. | |
Point & | operator= (const Vector3 &) |
Copy operator for vectors. | |
Point & | operator= (const Vector &) |
Copy operator for vectors. | |
int | operator== (const Point &) const |
Comparison operator ==. | |
int | operator> (const Point &) const |
Comparison operator > | |
double & | operator[] (int i) |
Get reference to i-th point coordinate. | |
const double & | operator[] (int i) const |
Get const reference to i-th point coordinate. | |
Point () | |
Constructor. | |
Point (double, double, double) | |
Constructor with three coordinates. | |
Point (const double [3]) | |
Constructor with three coordinates. | |
Point (const Point &) | |
Constructor with Point. | |
Point (const Vector3 &) | |
Constructor with Vector. | |
Point (const Vector &) | |
Constructor with Vector. | |
double | SquaredDistance () const |
Squared distance from origin. | |
double | SquaredDistance (const Point &) const |
Squared distance from point. | |
virtual | ~Point () |
Default destructor. | |
Public Attributes | |
double | _x |
x coordinate of Point | |
double | _y |
y coordinate of Point | |
double | _z |
z coordinate of Point | |