aimstil  5.0.5
point_tools.h File Reference
#include "til/Accumulator.h"
Include dependency graph for point_tools.h:

Go to the source code of this file.

Classes

struct  til::change_precision< Point< T, D, TStorage >, TNewPrecision >
 

Namespaces

 til
 Belongs to package Box Do not include directly, include til/Box.h instead.
 

Functions

template<typename TAccumulationPoint , typename TPointCollection >
TAccumulationPoint til::centroid (const TPointCollection &c)
 
template<typename T , std::size_t D>
til::dist2 (const Point< T, D > &p1, const Point< T, D > &p2)
 
template<typename TPrecision , typename T , std::size_t D>
TPrecision til::dist2 (const Point< T, D > &p1, const Point< T, D > &p2, prec< TPrecision >)
 Return the squared Euclidean distance between two vectors, computed with a precision given as the first template parameter. More...
 
template<typename TPrecision , typename T , std::size_t D>
TPrecision til::dist (const Point< T, D > &v1, const Point< T, D > &v2)
 Return the squared Euclidean distance between two vectors. More...