Home | History | Annotate | Download | only in tools

Lines Matching refs:y2

18  *    shape ::= color width shape x1 y1 x2 y2
42 * shape ::= color width shape x1 y1 x2 y2
52 * y2 ::= <number>
179 double x1, y1, x2, y2;
347 square_check(double x, double y, double x1, double y1, double x2, double y2)
348 /* Is x,y inside the square (x1,y1)..(x2,y2)? */
353 * x<x1 | x<y1 | x<x2 | x<y2
359 * So 'inside' is (x<x1) != (x<x2) && (y<y1) != (y<y2);
361 return ((x<x1) ^ (x<x2)) & ((y<y1) ^ (y<y2));
367 return square_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2);
387 double cy = (arg->y1+arg->y2)/2;
388 double wy = fabs(arg->y1-arg->y2)/2;
459 circle_check(double x, double y, double x1, double y1, double x2, double y2)
461 if (square_check(x, y, x1, y1, x2, y2))
465 const double cy = (y1 + y2)/2;
467 const double dy = y1 - y2;
484 return circle_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2);
496 double cy = (arg->y1+arg->y2)/2;
497 double wy = fabs(arg->y1-arg->y2)/2;
553 line_check(double x, double y, double x1, double y1, double x2, double y2,
558 double ly = y2 - y1;
602 return line_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2, arg->width/2, 0);
611 if (line_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2, arg->width/2,
618 line_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2, arg->width/2,
676 /* shape ::= color width shape x1 y1 x2 y2 */
684 arg->y2 = coordinate_of(argv[6]);
829 " shape ::= color width shape x1 y1 x2 y2\n"
835 " y1,y2 ::= <number>\n"