Skip to content

Conversation

@mrhooray
Copy link
Owner

@mrhooray mrhooray commented Nov 9, 2025

Summary

  • Add nearest_within_radius method that extends existing nearest functionality by filtering results based on an optional radius parameter
  • Maintain same ordering guarantees as nearest while allowing callers to limit search space for performance optimization
  • Add corresponding iterator methods (iter_nearest_within_radius, iter_nearest_within_radius_mut)
  • Include comprehensive tests and benchmarks for the new functionality

The implementation preserves the existing nearest behavior as a special case with unlimited radius, ensuring backward compatibility.

Add nearest_within_radius method that extends existing nearest functionality
by filtering results based on an optional radius parameter. The method
maintains the same ordering guarantees as nearest while allowing callers
to limit search space for performance optimization.

- Add nearest_within_radius and corresponding iterator methods
- Preserve existing nearest behavior as special case with unlimited radius
- Add comprehensive tests and benchmarks
- Update documentation with usage examples
@mrhooray mrhooray merged commit 4d23513 into master Nov 9, 2025
3 checks passed
@mrhooray mrhooray deleted the dev branch November 9, 2025 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants