Lines Matching defs:x1

47                                   double x1, double y1)
51 x1, y1,
54 curves.add(new Order1(x1, y1,
204 * Calculates the number of times the line from (x0,y0) to (x1,y1)
212 double x1, double y1)
217 if (px >= x0 && px >= x1) return 0;
218 if (px < x0 && px < x1) return (y0 < y1) ? 1 : -1;
219 double xintercept = x0 + (py - y0) * (x1 - x0) / (y1 - y0);
225 * Calculates the number of times the quad from (x0,y0) to (x1,y1)
237 double x1, double y1, int level)
242 if (px >= x0 && px >= xc && px >= x1) return 0;
243 if (px < x0 && px < xc && px < x1) {
254 if (level > 52) return pointCrossingsForLine(px, py, x0, y0, x1, y1);
257 double xc1 = (xc + x1) / 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)
294 if (px >= x0 && px >= xc0 && px >= xc1 && px >= x1) return 0;
295 if (px < x0 && px < xc0 && px < xc1 && px < x1) {
306 if (level > 52) return pointCrossingsForLine(px, py, x0, y0, x1, y1);
311 xc1 = (xc1 + x1) / 2;
330 xc1, yc1, x1, y1, level+1));
485 double x1, double y1)
489 if (x0 <= rxmin && x1 <= rxmin) return crossings;
490 if (x0 >= rxmax && x1 >= rxmax) {
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));
526 double xi1 = x1;
528 xi1 += ((rymin - y1) * (x0 - x1) / (y0 - y1));
530 xi1 += ((rymax - y1) * (x0 - x1) / (y0 - y1));
560 double x1, double y1,
565 if (x0 <= rxmin && xc <= rxmin && x1 <= rxmin) return crossings;
566 if (x0 >= rxmax && xc >= rxmax && x1 >= rxmax) {
590 (x1 < rxmax && x1 > rxmin && y1 < rymax && y1 > rymin))
599 x0, y0, x1, y1);
603 double xc1 = (xc + x1) / 2;
620 xc, yc, xc1, yc1, x1, y1,
637 double x1, double y1,
646 if (x0 <= rxmin && xc0 <= rxmin && xc1 <= rxmin && x1 <= rxmin) {
649 if (x0 >= rxmax && xc0 >= rxmax && xc1 >= rxmax && x1 >= rxmax) {
673 (x1 > rxmin && x1 < rxmax && y1 > rymin && y1 < rymax))
682 x0, y0, x1, y1);
688 xc1 = (xc1 + x1) / 2;
710 xc1, yc1, x1, y1, level+1);
732 public static int orderof(double x1, double x2) {
733 if (x1 < x2) {
736 if (x1 > x2) {