ArborX icon indicating copy to clipboard operation
ArborX copied to clipboard

Add an example using custom distance for nearest search

Open aprokop opened this issue 1 year ago • 3 comments

aprokop avatar Jun 23 '24 21:06 aprokop

explore defining struct MyPoint { float x, y; };

The whole point is for a user to not define their own type. The only thing that's necessary is to have a separate type for disambiguation during the dispatch.

aprokop avatar Jul 19 '24 19:07 aprokop

@dalg24 Do you have any blocking objections to merging the example in the current form?

aprokop avatar Jul 31 '24 17:07 aprokop

I chose distances so that a user can see that the computed distances are indeed the custom ones. Computing just the found indices seems insufficient to me, as it still does not confirm that we can get the correct distance in the callback.

@dalg24 If you find complexity unnecessary, please provide a reply to this comment.

aprokop avatar Jul 31 '24 17:07 aprokop