def addLoopsXSegmentIntersections(lineLoopsIntersections, loops, segmentFirstX, segmentSecondX, segmentYMirror, y):
 for loop in loops:
  addLoopXSegmentIntersections(lineLoopsIntersections, loop, segmentFirstX, segmentSecondX, segmentYMirror, y)

def addLoopsXSegmentIntersections ( lineLoopsIntersections , loops , segmentFirstX , segmentSecondX , segmentYMirror , y ) : for loop in loops : addLoopXSegmentIntersections ( lineLoopsIntersections , loop , segmentFirstX , segmentSecondX , segmentYMirror , y )
add intersections of the loops with the x segment .