lineLine
Computes the intersection points of two line segments, if any.
Return
an array of Vec2
objects representing the intersection points. The array could contain:
A single point if the segments touch at one point.
Two points if the segments overlap partially or completely.
An empty array if the segments do not intersect.
Parameters
a
the first line segment, represented as a Line2
object
b
the second line segment, represented as a Line2
object