Translations:Macro HilbertCurve/25/en

bit_string = format(distance, 'b').zfill(self.iterations * self.dimensions) # zero filled binary distance point = [int(bit_string[i::self.dimensions], 2) for i in range(self.dimensions)] # transpose of distance