Point2D.h File Reference
Detailed Description
Definition file for class Point2D.
#include "OFELI_Config.h"
#include "Point.h"
Go to the source code of this file.
Namespaces | |
| namespace | OFELI |
Classes | |
| class | Point2D |
| Defines a 2-D point with arbitrary type coordinates. More... | |
Functions | |
| bool | areClose (const Point2D< double > &a, const Point2D< double > &b, double toler=OFELI_TOLERANCE) |
| Return true if both instances of class Point2D<double> are distant with less then toler. | |
| double | Distance (const Point2D< double > &a, const Point2D< double > &b) |
| Return euclidean distance between points a and b. | |
| template<class T_> | |
| T_ | operator* (const Point2D< T_ > &b, const Point2D< T_ > &a) |
| Operator *. | |
| template<class T_> | |
| Point2D< T_ > | operator* (const Point2D< T_ > &b, const int &a) |
| Operator *. | |
| template<class T_> | |
| Point2D< T_ > | operator* (const Point2D< T_ > &b, const T_ &a) |
| Operator /. | |
| template<class T_> | |
| Point2D< T_ > | operator* (const int &a, const Point2D< T_ > &b) |
| Operator *. | |
| template<class T_> | |
| Point2D< T_ > | operator* (const T_ &a, const Point2D< T_ > &b) |
| Operator *. | |
| template<class T_> | |
| Point2D< T_ > | operator+ (const Point2D< T_ > &a, const T_ &x) |
| Operator +. | |
| template<class T_> | |
| Point2D< T_ > | operator+ (const Point2D< T_ > &a, const Point2D< T_ > &b) |
| Operator +. | |
| template<class T_> | |
| Point2D< T_ > | operator- (const Point2D< T_ > &a, const T_ &x) |
| Operator -. | |
| template<class T_> | |
| Point2D< T_ > | operator- (const Point2D< T_ > &a, const Point2D< T_ > &b) |
| Operator -. | |
| template<class T_> | |
| Point2D< T_ > | operator- (const Point2D< T_ > &a) |
| Unary Operator -. | |
| template<class T_> | |
| Point2D< T_ > | operator/ (const Point2D< T_ > &b, const T_ &a) |
| Operator /. | |
| template<class T_> | |
| std::ostream & | operator<< (std::ostream &s, const Point2D< T_ > &a) |
| Output point coordinates. | |
| template<class T_> | |
| bool | operator== (const Point2D< T_ > &a, const Point2D< T_ > &b) |
| Operator ==. | |
| double | SqrDistance (const Point2D< double > &a, const Point2D< double > &b) |
| Return squared euclidean distance between points a and b. | |