Skip to content

Conversation

@mrhooray
Copy link
Owner

@mrhooray mrhooray commented Nov 9, 2025

Summary

  • Add section headers to KdTree implementation for better organization
  • Move iterator types to appropriate sections
  • Restructure test suite into focused modules by functionality
  • Rename test files to follow consistent naming convention
  • Update documentation with bounding_box usage details

Changes

  • Code Organization: Added clear section headers (STRUCTURE, NEAREST QUERIES, WITHIN QUERIES, BOUNDING BOX, SHARED TRAVERSAL UTILITIES, NEAREST ITERATOR TYPES)
  • Test Structure: Reorganized tests into focused modules:
    • query_bounding_box.rs - bounding box query tests
    • query_nearest.rs - nearest neighbor query tests
    • query_within.rs - radius query tests
    • structure.rs - tree structure and capacity tests
    • traversal.rs - distance evaluation efficiency tests
  • Documentation: Updated lib.rs with bounding_box usage guidance

This refactor improves code readability and maintainability while preserving all existing functionality.

@mrhooray mrhooray force-pushed the dev branch 3 times, most recently from 5feb175 to e59a113 Compare November 10, 2025 05:50
@mrhooray mrhooray changed the title feat: add bounding box query support and reorganize test structure feat: add bounding box query and reorganize code structure Nov 10, 2025
@mrhooray mrhooray changed the title feat: add bounding box query and reorganize code structure refactor: rename within_bounding_box to bounding_box and reorganize code structure Nov 10, 2025
@mrhooray mrhooray force-pushed the dev branch 3 times, most recently from 5a31b1f to 8f953e2 Compare November 10, 2025 06:35
@mrhooray mrhooray changed the title refactor: rename within_bounding_box to bounding_box and reorganize code structure refactor: reorganize code structure with clear section headers and test modules Nov 10, 2025
…st modules

- Add section headers to KdTree implementation for better organization
- Move iterator types to appropriate sections
- Restructure test suite into focused modules by functionality
- Rename test files to follow consistent naming convention
- Update documentation with bounding_box usage details
@mrhooray mrhooray merged commit 1fddb5e into master Nov 10, 2025
3 checks passed
@mrhooray mrhooray deleted the dev branch November 10, 2025 07:07
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