Translations:Macro HilbertCurve/26/it

gray = point[self.dimensions-1] >> 1 for i in range(self.dimensions-1, 0, -1): point[i] ^= point[i-1] point[0] ^= gray
 * 1) Gray decode: point = point xor (point / 2)