spacecurve
A Rust library for N-dimensional space-filling curves and spatial indexing.
Features
- Supported Curves:
- Hilbert (2D optimized, N-D generic)
- Z-order / Morton (optimized bit-interleaving)
- Gray Code (Binary Reflected)
- H-curve
- Scan (Boustrophedon)
- Onion / Hairy Onion (Recursive layer-based)
- High Performance: Uses
SmallVecto avoid heap allocations for common 2D/3D points, and optimized SWAR algorithms for bit manipulation. - Generic: Supports N-dimensional mappings where applicable.
Usage
use ;