functionintersectionsPolygonLine
Returns the vector of intersections between a polygon and a line
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,2] | polygon | Polygon | |
| Real | x0_R | Line origin abscissa | |
| Real | y0_R | Line origin ordinate | |
| Real | a_R | Line direction abscissa | |
| Real | b_R | Line direction ordinate | |
| Real | tolerance | 0 | Tolerance |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[size(polygon, 1)] | int | Vector of intersection points on line | |
| Integer | n | Number of intersection points. If -1, the result is undecided |