def getMirrorPath(path):
 close = (0.001 * getPathLength(path))
 for pointIndex in xrange((len(path) - 1), (-1), (-1)):
  point = path[pointIndex]
  flipPoint = complex((- point.real), point.imag)
  if (abs((flipPoint - path[(-1)])) > close):
   path.append(flipPoint)
 return path

def getMirrorPath ( path ) : close = ( 0.001 * getPathLength ( path ) ) for pointIndex in xrange ( ( len ( path ) - 1 ) , ( - 1 ) , ( - 1 ) ) : point = path [ pointIndex ] flipPoint = complex ( ( - point . real ) , point . imag ) if ( abs ( ( flipPoint - path [ ( - 1 ) ] ) ) > close ) : path . append ( flipPoint ) return path
get mirror path .