Get all line intersections of this polygon and their tangents along the shape.
This method returns all intersection tangents (as vectors) with this shape. The returned array of vectors is in no specific order.
The line to find intersections with.
Optional
inVectorBoundsOnly: boolean(default=false) If set to true only intersecion points on the passed vector are returned (located strictly between start and end vertex).
Get all line intersections with this polygon.
This method returns all intersections (as vertices) with this shape. The returned array of vertices is in no specific order.
See demo 47-closest-vector-projection-on-polygon
for how it works.
The line to find intersections with.
Optional
inVectorBoundsOnly: boolean(default=false) If set to true only intersecion points on the passed vector are returned (located strictly between start and end vertex).
Shapes should implement this interface if they support intersection calculation.