Bug 20: Mangled Morton Space-Filling Curve
- This code interleaves the bits of the components of an (x, y, z) coordinate.
- It assumes that x fits in 11 bits, y fits in 11 bits, and z fits in 10 bits.
- This interleaving maps 3D space onto 1D space while tending to preserve point proximity.
- If two points are nearby in 3D space they tend to be nearby in the linearization.
Fix The Tiny Bug In This Go Code: