You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thanks for creating this awesome library. Would it be Possible to extend the protocol to support any KDTreePoint implemented type? What I mean is that, currently the protocol expect the same type for distance comparision:
then I could extend both Node and CGPoint and do my queries with a tiny CGPoint (albeit handling the type check in the distance function etc.).
I know this is a convenience but figured mention it. Thank you!
The text was updated successfully, but these errors were encountered:
i didn't expect a heterogenous tree structure with different types being compared would be a common use case.
Potentially this could cause a lot of confusion.
Hi,
Thanks for creating this awesome library. Would it be Possible to extend the protocol to support any KDTreePoint implemented type? What I mean is that, currently the protocol expect the same type for distance comparision:
This is okay but very limiting, imagine my nodes have this structure:
if I create my tree with Node, I am forced always to query it with a
Node
as well, but if you would have relaxed the Protocol to:then I could extend both Node and CGPoint and do my queries with a tiny CGPoint (albeit handling the type check in the distance function etc.).
I know this is a convenience but figured mention it. Thank you!
The text was updated successfully, but these errors were encountered: