Lines Matching refs:y1
206 double x1, y1;
211 y1 = y0 + dy;
214 addLine(x0, y0, x1, y1);
218 y0 = y1;
253 double x1 = x0, y1 = y0;
296 y1 += dy;
301 y1 = y3;
304 addLine(x0, y0, x1, y1);
308 y0 = y1;
315 private void addLine(double x1, double y1, double x2, double y2) {
323 if (y2 < y1) {
326 y2 = y1;
327 y1 = tmp;
336 // Since y1 and y2 are biased by -0.5 in tosubpixy(), this is simply
337 // ceil(y1) or ceil(y2)
339 final int firstCrossing = FloatMath.max(FloatMath.ceil_int(y1), boundsMinY);
367 final double slope = (x1 - x2) / (y1 - y2);
417 // Note that since y1 (and y2) are already biased by -0.5 in tosubpixy(), we have
418 // y1 = trueY - 0.5
419 // trueY = y1 + 0.5
420 // firstcrossing + 0.5 - trueY = firstcrossing + 0.5 - (y1 + 0.5)
421 // = firstcrossing - y1
423 // x1_intercept = x1 + (firstcrossing - y1) * slope
434 final double x1_intercept = x1 + (firstCrossing - y1) * slope;
684 final double y1 = tosubpixy(pix_y1);
685 addLine(x0, y0, x1, y1);
687 y0 = y1;
691 public void curveTo(double x1, double y1,
697 curve.set(x0, y0, tosubpixx(x1), tosubpixy(y1),
705 public void quadTo(double x1, double y1, double x2, double y2) {
708 curve.set(x0, y0, tosubpixx(x1), tosubpixy(y1), xe, ye);