.CRML.ETL.Utilities.intersectionsPolygonLine

Returns the vector of intersections between a polygon and a line

Interface

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;

Generated at 2026-04-01T18:18:38Z by OpenModelicaOpenModelica 1.26.3 using GenerateDoc.mos