Translations:Macro HilbertCurve/25/fr

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