Hello, I am trying to find an intersection between a BezierCurve and a Line
But it fails with this code :
Line line = new Line(new Point(14.5428, -10000.0), new Point(14.5428, 10000.0));
BezierCurve curve = new BezierCurve(new Point(24.200000000000077, -2.3727936609778726), new Point(17.56250052131255, -2.372947931952322), new Point(13.137498435758783, -2.3730630604781013), new Point(6.499999999999994, -2.372678596158668));
Point[] intersectionPoint = line.getIntersections(curve);
No intersections are found (empty array returned, length = 0)
if I decrease my line Y bounds (1000.0 instead of 10000.0) :
Line line = new Line(new Point(14.5428, 1000.0), new Point(14.5428, 1000.0));
the intersection is found
[Updated on: Mon, 11 January 2016 16:39]
Report message to a moderator