Intersects a segment with a polygon in 2D (ignoring Y). Uses the Sutherland-Hodgman clipping algorithm approach.
The result object to store intersection data
Start position of the segment
End position of the segment
Number of vertices in the polygon
Polygon vertices as flat array [x,y,z,x,y,z,...]
Intersects a segment with a polygon in 2D (ignoring Y). Uses the Sutherland-Hodgman clipping algorithm approach.