def isPathEntirelyInsideLoop(loop, path):
 for point in path:
  if (not isPointInsideLoop(loop, point)):
   return False
 return True

def isPathEntirelyInsideLoop ( loop , path ) : for point in path : if ( not isPointInsideLoop ( loop , point ) ) : return False return True
determine if a path is entirely inside another loop .