def getDistanceToLineByPaths(begin, end, paths):
 distanceToLine = (-987654321.0)
 for path in paths:
  distanceToLine = max(getDistanceToLineByPath(begin, end, path), distanceToLine)
 return distanceToLine

def getDistanceToLineByPaths ( begin , end , paths ) : distanceToLine = ( - 987654321.0 ) for path in paths : distanceToLine = max ( getDistanceToLineByPath ( begin , end , path ) , distanceToLine ) return distanceToLine
get the maximum distance from paths to an infinite line .