Class xlifepp::KdNode#
-
template<class T>
class KdNode#
-
node of a KdTree
Public Functions
-
inline KdNode()#
-
default constructor
-
~KdNode()#
-
destructor
-
template<typename It>
void build(It, It)#
-
build a balanced subtree from objects pointers [b,e)
build a balanced subtree from the objects pointed by [b,e) (not empty): recursive median split along the direction of largest extent; the objects of the left subtree have their component separator_ <= sv_ and those of the right subtree >= sv_, as required by searchNearest and insert (inserting ordered objects one by one gives a very deep tree)
-
inline bool isVoid() const#
-
true if a void node
-
void print(std::ostream&, std::string&) const#
-
print utility
-
inline KdNode()#