intersections
Computes the intersection points between two 2D curves.
The method determines the intersections by considering the types of the input curves, applying specific algorithms depending on whether one or both curves are lines. If the bounding boxes of the curves do not intersect, it returns an empty array.
Return
an array of 2D points (Vec2) representing the intersection points between the two curves
Parameters
a
the first curve to compute intersections with
b
the second curve to compute intersections with