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