Tests whether the segment a-b intersects the polygon, i.e. it has an
endpoint inside the polygon or crosses one of its edges. Works for convex and
concave polygons.
Parameters
vertices: readonlynumber[]
polygon vertices as a flat array [x0, y0, x1, y1, ...]
Tests whether the segment
a-bintersects the polygon, i.e. it has an endpoint inside the polygon or crosses one of its edges. Works for convex and concave polygons.