Hilbert-2D
2D Hilbert curve coordinate encoder/decoder
;
The code is ported from Go to JS from https://github.com/google/hilbert/ Inlined rotations to eliminate function calls.
Install
npm install -S hilbert-2d
API
const h = ; h; // 837h; // [12, 23]
TODO
- Add range queries and sorting
- Add examples