256257258259260261262263264265266
float min = 0; float max = 1; Point2D.Double p; for (;;) { float t = (min + max) / 2; p = c.eval(t); double x = p.getX(); if (Math.abs(x - interpolation) < tolerance) { break; } if (x < interpolation) {
184185186187188189190191192193194