def getLoopsLoopsIntersections(loops, otherLoops):
 loopsLoopsIntersections = []
 for loop in loops:
  addLoopLoopsIntersections(loop, loopsLoopsIntersections, otherLoops)
 return loopsLoopsIntersections

def getLoopsLoopsIntersections ( loops , otherLoops ) : loopsLoopsIntersections = [ ] for loop in loops : addLoopLoopsIntersections ( loop , loopsLoopsIntersections , otherLoops ) return loopsLoopsIntersections
get all the intersections of the loops with the other loops .