def getDiagonalFlippedLoop(loop):
 diagonalFlippedLoop = []
 for point in loop:
  diagonalFlippedLoop.append(complex(point.imag, point.real))
 return diagonalFlippedLoop

def getDiagonalFlippedLoop ( loop ) : diagonalFlippedLoop = [ ] for point in loop : diagonalFlippedLoop . append ( complex ( point . imag , point . real ) ) return diagonalFlippedLoop
get loop flipped over the dialogonal .