27 #ifndef MPBLOCKS_DUBINS_KD_TREE_NEAREST_HPP_
28 #define MPBLOCKS_DUBINS_KD_TREE_NEAREST_HPP_
38 template <
typename Scalar>
47 template <
typename Scalar>
56 template <
typename Scalar>
59 Scalar d2 = m_dist2Fn(q,p);
60 if( d2 < m_d2Best || !m_nBest )
70 template <
typename Scalar>
73 Scalar d2 = m_dist2Fn(q,r);
74 return (d2 < m_d2Best);
93 #endif // NEARESTNEIGHBOR_H_
virtual bool shouldRecurse(const Point &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...
virtual void evaluate(const Point &q, const Point &p, Node_t *n)
calculates Euclidean distance from q to p, and if its less than the current best replaces the current...
Eigen::Matrix< Scalar, 3, 1 > Point