Go to the source code of this file.
|
| | til |
| | Belongs to package Box Do not include directly, include til/Box.h instead.
|
| |
|
| template<typename TAccumulationPoint , typename TPointCollection > |
| TAccumulationPoint | til::centroid (const TPointCollection &c) |
| |
| template<typename T , std::size_t D> |
| T | 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...
|
| |