lineCubic
Computes the intersections between a 2D line segment and a cubic Bézier curve.
Return
an array of Vec2
objects, where each element represents an intersection point in the parameter space (s, t). s
corresponds to the line's parameter, and t
corresponds to the cubic Bézier curve's parameter.
Parameters
p
the 2D line segment represented as a Line2
object
q
the cubic Bézier curve represented as a CubicBezier2
object