4 ms·
If you are interested in spherical math, you should check out google's S2 library [0] which uses hilbert curves to classify areas on a sphere. Here is an overv
by mrep 8y ago
If you are interested in spherical math, you should check out google's S2 library [0] which uses hilbert curves to classify areas on a sphere. Here is an overview of the cell hierarchy [1]
[0]: http://s2geometry.io/ http://s2geometry.io/
[1]: http://s2geometry.io/devguide/s2cell_hierarchy http://s2geometry.io/devguide/s2cell_hierarchy
- deleted 8y ago[deleted]
- kjeetgill 8y agoFor anyone who was scratching thier head about how a plane filling curve gets mapped into a sphere; what S2 really does is project the sphere onto the six sides of a cube _and then_ fill each face with a Hilbert Curve index.
- mrep 8y agoLol and Holy shit! That totally explains why the s2 cell lengths vary based on where they are located in one of the six faces (aka, sides of a cube) of which the documentation does not explain clearly. I have spent many hours using this library and your comment has explained so much of what I was confused about it. Thank you
- kjeetgill 8y agoI'm glad I could help! I just picked up that fun fact from recently. You're going to get a kick out of: https://news.ycombinator.com/item?id=17765388 https://news.ycombinator.com/item?id=17765388