crvs / KDTree

Simple C++ KD-Tree implementation
BSD 3-Clause "New" or "Revised" License
197 stars 71 forks source link

Declared function dist not implemented #3

Closed MK-3PP closed 4 years ago

MK-3PP commented 4 years ago

KDTree.hpp declares

inline double dist(const point_t &, const point_t &);
inline double dist(const KDNodePtr &, const KDNodePtr &);

but KDTree.cpp implements

inline double dist2(const point_t &, const point_t &);
inline double dist2(const KDNodePtr &, const KDNodePtr &);

istead.

Either declare dist2 in header file or implement dist implementation file.

crvs commented 4 years ago

yeah that was a silly bug