lineCurve

Calculates the intersection points between a line and a curve in 2D space.

Return

An array of 2D vectors representing the intersection points between the line and the curve. The array may be empty if no intersections are found.

Parameters

a

The first parameter representing the line segment.

b

The second parameter representing the curve, which can be a line, quadratic Bézier curve, or cubic Bézier curve.