codeandcats / KdTree

A fast, generic, multi-dimensional Binary Search Tree written in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any way to traverse KdTree?

zry656565 opened this issue · comments

I found that root in KdTree's declaration is private and leftChild and rightChild is internal in KdTreeNode. It seems that there may be no way to traverse KdTree for now.

commented

You're right, it appears there is no way to iterate over the tree currently.

I should have some free time this weekend so I'll add it in then. :)

Thanks! 🍺

commented

Fixed in version 1.1.0.

KdTree now implements generic IEnumerable which yields each node in the tree.

Good job!