Use new range feature of solveCubic()
Do not use the point of the rotated curve to evaluate the parameter of the line.

Use the non-rotated curve instead.