Closed kahaaga closed 2 years ago
It doesn't really count the point itself because the point
given does not necessarily exist in the tree. From the algorithms p.o.v is it more an "accident" that the input point happens to coincide with a point in the tree.
It doesn't really count the point itself because the point given does not necessarily exist in the tree. From the algorithms p.o.v is it more an "accident" that the input point happens to coincide with a point in the tree.
Thanks for the clarification! I guess the distinction first becomes relevant in my particular use case, where I query points that also exist in the tree.
I can use
inrangecount(tree, point, r)
to count the number of points within radiusr
frompoint
. It was unclear to me from the documentation whetherpoint
itself was included in this count or not. However, from the following example, it seems that it is. Perhaps this should be documented?