def getPointsByVerticalDictionary(width, xIntersectionsDictionary):
 points = []
 xIntersectionsDictionaryKeys = xIntersectionsDictionary.keys()
 xIntersectionsDictionaryKeys.sort()
 for xIntersectionsDictionaryKey in xIntersectionsDictionaryKeys:
  for xIntersection in xIntersectionsDictionary[xIntersectionsDictionaryKey]:
   points.append(complex((xIntersectionsDictionaryKey * width), xIntersection))
 return points

def getPointsByVerticalDictionary ( width , xIntersectionsDictionary ) : points = [ ] xIntersectionsDictionaryKeys = xIntersectionsDictionary . keys ( ) xIntersectionsDictionaryKeys . sort ( ) for xIntersectionsDictionaryKey in xIntersectionsDictionaryKeys : for xIntersection in xIntersectionsDictionary [ xIntersectionsDictionaryKey ] : points . append ( complex ( ( xIntersectionsDictionaryKey * width ) , xIntersection ) ) return points
get points from the verticalxintersectionsdictionary .