Lines Matching defs:y1

47                                   double x1, double y1)
49 if (y0 < y1) {
51 x1, y1,
53 } else if (y0 > y1) {
54 curves.add(new Order1(x1, y1,
66 double y1 = coords[3];
67 if (y0 > y1) {
69 coords[2], y1,
73 } else if (y0 == y1 && y0 == coords[1]) {
80 coords[2], y1,
89 double y1 = coords[5];
90 if (y0 > y1) {
92 coords[4], y1,
97 } else if (y0 == y1 && y0 == coords[1] && y0 == coords[3]) {
105 coords[4], y1,
204 * Calculates the number of times the line from (x0,y0) to (x1,y1)
212 double x1, double y1)
214 if (py < y0 && py < y1) return 0;
215 if (py >= y0 && py >= y1) return 0;
216 // assert(y0 != y1);
218 if (px < x0 && px < x1) return (y0 < y1) ? 1 : -1;
219 double xintercept = x0 + (py - y0) * (x1 - x0) / (y1 - y0);
221 return (y0 < y1) ? 1 : -1;
225 * Calculates the number of times the quad from (x0,y0) to (x1,y1)
237 double x1, double y1, int level)
239 if (py < y0 && py < yc && py < y1) return 0;
240 if (py >= y0 && py >= yc && py >= y1) return 0;
241 // Note y0 could equal y1...
245 if (py < y1) return 1;
248 if (py >= y1) return -1;
250 // py outside of y01 range, and/or y0==y1
254 if (level > 52) return pointCrossingsForLine(px, py, x0, y0, x1, y1);
258 double yc1 = (yc + y1) / 2;
271 xc, yc, xc1, yc1, x1, y1,
276 * Calculates the number of times the cubic from (x0,y0) to (x1,y1)
289 double x1, double y1, int level)
291 if (py < y0 && py < yc0 && py < yc1 && py < y1) return 0;
292 if (py >= y0 && py >= yc0 && py >= yc1 && py >= y1) return 0;
297 if (py < y1) return 1;
300 if (py >= y1) return -1;
306 if (level > 52) return pointCrossingsForLine(px, py, x0, y0, x1, y1);
312 yc1 = (yc1 + y1) / 2;
330 xc1, yc1, x1, y1, level+1));
485 double x1, double y1)
487 if (y0 >= rymax && y1 >= rymax) return crossings;
488 if (y0 <= rymin && y1 <= rymin) return crossings;
496 if (y0 < y1) {
498 // We know that y0 < rymax and y1 > rymin
500 if (y1 >= rymax) crossings++;
501 } else if (y1 < y0) {
503 // We know that y1 < rymax and y0 > rymin
504 if (y1 <= rymin) crossings--;
514 (x1 > rxmin && x1 < rxmax && y1 > rymin && y1 < rymax))
522 xi0 += ((rymin - y0) * (x1 - x0) / (y1 - y0));
524 xi0 += ((rymax - y0) * (x1 - x0) / (y1 - y0));
527 if (y1 < rymin) {
528 xi1 += ((rymin - y1) * (x0 - x1) / (y0 - y1));
529 } else if (y1 > rymax) {
530 xi1 += ((rymax - y1) * (x0 - x1) / (y0 - y1));
534 if (y0 < y1) {
536 // We know that y0 < rymax and y1 > rymin
538 if (y1 >= rymax) crossings++;
539 } else if (y1 < y0) {
541 // We know that y1 < rymax and y0 > rymin
542 if (y1 <= rymin) crossings--;
560 double x1, double y1,
563 if (y0 >= rymax && yc >= rymax && y1 >= rymax) return crossings;
564 if (y0 <= rymin && yc <= rymin && y1 <= rymin) return crossings;
575 if (y0 < y1) {
577 if (y0 <= rymin && y1 > rymin) crossings++;
578 if (y0 < rymax && y1 >= rymax) crossings++;
579 } else if (y1 < y0) {
581 if (y1 <= rymin && y0 > rymin) crossings--;
582 if (y1 < rymax && y0 >= rymax) crossings--;
590 (x1 < rxmax && x1 > rxmin && y1 < rymax && y1 > rymin))
599 x0, y0, x1, y1);
604 double yc1 = (yc + y1) / 2;
620 xc, yc, xc1, yc1, x1, y1,
637 double x1, double y1,
640 if (y0 >= rymax && yc0 >= rymax && yc1 >= rymax && y1 >= rymax) {
643 if (y0 <= rymin && yc0 <= rymin && yc1 <= rymin && y1 <= rymin) {
658 if (y0 < y1) {
660 if (y0 <= rymin && y1 > rymin) crossings++;
661 if (y0 < rymax && y1 >= rymax) crossings++;
662 } else if (y1 < y0) {
664 if (y1 <= rymin && y0 > rymin) crossings--;
665 if (y1 < rymax && y0 >= rymax) crossings--;
673 (x1 > rxmin && x1 < rxmax && y1 > rymin && y1 < rymax))
682 x0, y0, x1, y1);
689 yc1 = (yc1 + y1) / 2;
710 xc1, yc1, x1, y1, level+1);
742 public static long signeddiffbits(double y1, double y2) {
743 return (Double.doubleToLongBits(y1) - Double.doubleToLongBits(y2));
745 public static long diffbits(double y1, double y2) {
746 return Math.abs(Double.doubleToLongBits(y1) -
812 double y1 = getYBot();
815 if (y1 <= ylo) {
827 if (y1 > yhi) {
831 yend = y1;
875 double y1 = yrange[1];
876 y1 = Math.min(Math.min(y1, this.getYBot()), that.getYBot());
877 if (y1 <= yrange[0]) {
881 throw new InternalError("backstepping from "+yrange[0]+" to "+y1);
883 yrange[1] = y1;
905 double s1 = this.TforY(y1);
916 double t1 = that.TforY(y1);
923 double scale = Math.max(Math.abs(y0), Math.abs(y1));
927 double maxbump = Math.min(ymin * 1E13, (y1 - y0) * .1);
929 while (y <= y1) {
951 if (y < y1) {
957 //double ymin = y1 * 1E-14;