2D Hilbert curve coordinate encoder/decoder
npm install hilbert-2d2D 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.
```
npm install -S hilbert-2d
`js
const h = require('hilbert-2d');
h.encode(16, [12, 23]); // 837
h.decode(16, 837); // [12, 23]
``
- [ ] Add range queries and sorting
- [ ] Add examples