27 #ifndef MPBLOCKS_KD_TREE_EUCLIDEAN_NEAREST_HPP_
28 #define MPBLOCKS_KD_TREE_EUCLIDEAN_NEAREST_HPP_
38 template <
class Traits>
47 template <
class Traits>
56 template <
class Traits>
71 template <
class Traits>
76 return (d2 < m_d2Best);
95 #endif // NEARESTNEIGHBOR_H_
virtual void evaluate(const Point_t &q, const Point_t &p, Node_t *n)
calculates Euclidean distance from q to p, and if its less than the current best replaces the current...
void reset(Format_t inf=std::numeric_limits< Format_t >::max())
the node class must be defined in traits since it uses the CTRP, it must derive from kd_tree::Node<Tr...
virtual bool shouldRecurse(const Point_t &q, const HyperRect_t &r)
evaluate the Euclidean distance from q to it's closest point in r and if that distance is less than t...
Traits::Format_t Format_t
Eigen::Matrix< Format_t, Traits::NDim, 1 > Point_t
an NDim dimensional hyperrectangle, represented as a min and max extent