Translations:Macro HilbertCurve/25/it

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