function intersectionsPolygonLine input Real polygon[:, 2] "Polygon"; input Real x0_R "Line origin abscissa"; input Real y0_R "Line origin ordinate"; input Real a_R "Line direction abscissa"; input Real b_R "Line direction ordinate"; input Real tolerance = 0 "Tolerance"; output Real int[size(polygon, 1)] "Vector of intersection points on line"; output Integer n "Number of intersection points. If -1, the result is undecided"; end intersectionsPolygonLine;