by wfunction · 11y ago · 0 comments
https://code.google.com/p/s2-geometry-library/source/browse/...
The lookup table it references is generated up here:
https://code.google.com/p/s2-geometry-library/source/browse/...
http://blog.notdot.net/2009/11/Damn-Cool-Algorithms-Spatial-...
(peano not hilbert but very similar idea)
http://blog.notdot.net/2009/11/Damn-Cool-Algorithms-Spatial-...
The links the authors provide to learn more about the HSFC probably discuss it too!
http://citeseerx.ist.psu.edu/viewdoc/download;jsessionid=731...
http://www.fundza.com/algorithmic/space_filling/hilbert/basi...
[0] For the 2D version, split divide the quadrants with the center x and y axis. For the 1D version, just break it into four equal length pieces.