given a closed piecewise polynomial spline and a line, what is the most efficient way to find the intersection(s) of the line and the spline?
each piece of the spline is given as:
$P_j(x)=\sum_{i=1}^k (x-b_j)^{k-i} c_{ji}$
where $k$ is the order for each polynomial, $j$ represents the number of pieces $j=1:L$, $b_j$ is the $j$th break, $c_{ji}$ is the coefficient.
I assume that the origin $[0,0]$ is inside the closed spline and the line always passes through the origin, hence $y=mx$.
As it can be seen in the following picture, the line passing through the origin intersects with the spline in 2 points that I am interested in. Is there a closed form solution for that?
