Computes all intersection points between a line segment and a polygon.
The line segment
A polygon object or array of global points
Array of intersection points (empty if none)
Computes all intersection points between a line segment and a polygon.