Is there an easy way to approximate the points (if any) where two instances of QuadCurve2D ?
That is, how could I calculate the coordinates of the red dots in this diagram? There is no obvious method for this in QuadCurve2D .

(note: the points are not accurate, because I manually adjusted them for the diagram. Also pay attention to the “missing” fourth point, which does not lie on the segment of the curve, even if it lies on an (infinite) parabola.)
These two segments of the curve were created using the following code:
QuadCurve2D curve1 = new QuadCurve2D.Double(-2.00, -2.00, +0.75, +4.75, +2.00, -0.75); QuadCurve2D curve2 = new QuadCurve2D.Double(-2.50, -0.75, +5.50, -0.50, +0.50, +1.25);
Note 2: I would also like to be able to intersect a straight line and a quadratic curve, but I assume that this can be solved by setting one of the control points in a colinear with end points.
finnw source share