libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
CRNPoint2D.h File Reference
#include <CRNObject.h>
#include <CRNString.h>
#include <CRNMath/CRNMath.h>
#include <type_traits>
+ Include dependency graph for CRNPoint2D.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  crn::Point2D< T >
 A 2D point class. More...
 
struct  crn::Point2D< T >::Comparer
 Functor to compare points. More...
 

Namespaces

 crn
 

Functions

template<typename T >
double crn::Distance (const Point2D< T > &p1, const Point2D< T > &p2, DistanceType dt=DistanceType::EUCLIDEAN)
 
template<typename T >
crn::Point2D< T > operator+ (crn::Point2D< T > p1, const crn::Point2D< T > &p2) noexcept
 
template<typename T >
crn::Point2D< T > operator- (crn::Point2D< T > p1, const crn::Point2D< T > &p2) noexcept
 
template<typename T >
crn::Point2D< double > operator* (double d, const crn::Point2D< T > &p) noexcept
 
template<typename T >
crn::Point2D< double > operator* (const crn::Point2D< T > &p, double d) noexcept
 

Function Documentation

template<typename T >
crn::Point2D<double> operator* ( double  d,
const crn::Point2D< T > &  p 
)
noexcept

Definition at line 120 of file CRNPoint2D.h.

template<typename T >
crn::Point2D<double> operator* ( const crn::Point2D< T > &  p,
double  d 
)
noexcept

Definition at line 121 of file CRNPoint2D.h.

template<typename T >
crn::Point2D<T> operator+ ( crn::Point2D< T >  p1,
const crn::Point2D< T > &  p2 
)
noexcept

Definition at line 118 of file CRNPoint2D.h.

template<typename T >
crn::Point2D<T> operator- ( crn::Point2D< T >  p1,
const crn::Point2D< T > &  p2 
)
noexcept

Definition at line 119 of file CRNPoint2D.h.