(9)

Point.h File Reference

Definition file and implementation for class Point. More...

Classes

class  Point< T_ >
 Defines a point with arbitrary type coordinates. More...
 

Namespaces

 OFELI
 A namespace to group all library classes, functions, ...
 

Functions

template<class T_ >
bool operator== (const Point< T_ > &a, const Point< T_ > &b)
 Operator == More...
 
template<class T_ >
Point< T_ > operator+ (const Point< T_ > &a, const Point< T_ > &b)
 Operator + More...
 
template<class T_ >
Point< T_ > operator+ (const Point< T_ > &a, const T_ &x)
 Operator + More...
 
template<class T_ >
Point< T_ > operator- (const Point< T_ > &a)
 Unary Operator - More...
 
template<class T_ >
Point< T_ > operator- (const Point< T_ > &a, const Point< T_ > &b)
 Operator - More...
 
template<class T_ >
Point< T_ > operator- (const Point< T_ > &a, const T_ &x)
 Operator - More...
 
template<class T_ >
Point< T_ > operator* (const T_ &a, const Point< T_ > &b)
 Operator * More...
 
template<class T_ >
Point< T_ > operator* (const int &a, const Point< T_ > &b)
 Operator *. More...
 
template<class T_ >
Point< T_ > operator* (const Point< T_ > &b, const T_ &a)
 Operator / More...
 
template<class T_ >
Point< T_ > operator* (const Point< T_ > &b, const int &a)
 Operator * More...
 
template<class T_ >
T_ operator* (const Point< T_ > &a, const Point< T_ > &b)
 Operator * More...
 
template<class T_ >
Point< T_ > operator/ (const Point< T_ > &b, const T_ &a)
 Operator / More...
 
Point< real_tCrossProduct (const Point< real_t > &lp, const Point< real_t > &rp)
 Return Cross product of two vectors lp and rp
 
bool areClose (const Point< real_t > &a, const Point< real_t > &b, real_t toler=OFELI_TOLERANCE)
 Return true if both instances of class Point<double> are distant with less then toler More...
 
real_t SqrDistance (const Point< real_t > &a, const Point< real_t > &b)
 Return squared euclidean distance between points a and b More...
 
real_t Distance (const Point< real_t > &a, const Point< real_t > &b)
 Return euclidean distance between points a and b More...
 
bool operator< (const Point< size_t > &a, const Point< size_t > &b)
 Comparison operator. Returns true if all components of first vector are lower than those of second one. More...
 
template<class T_ >
std::ostream & operator<< (std::ostream &s, const Point< T_ > &a)
 Output point coordinates. More...
 

Detailed Description

Definition file and implementation for class Point.