Is there any way to traverse KdTree?
zry656565 opened this issue · comments
Jerry Zou commented
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.
Benji 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. :)
Jerry Zou commented
Thanks! 🍺
Benji commented
Fixed in version 1.1.0.
KdTree now implements generic IEnumerable which yields each node in the tree.
Jerry Zou commented
Good job!