Home | History | Annotate | Download | only in tools

Lines Matching defs:x1

18  *    shape ::= color width shape x1 y1 x2 y2
42 * shape ::= color width shape x1 y1 x2 y2
49 * x1 ::= <number>
179 double x1, y1, x2, y2;
200 * 2) If the shape is within a square of size 1x1 centered on the pixel assume
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);
385 double cx = (arg->x1+arg->x2)/2;
386 double wx = fabs(arg->x1-arg->x2)/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))
464 const double cx = (x1 + x2)/2;
466 const double dx = x1 - x2;
484 return circle_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2);
494 double cx = (arg->x1+arg->x2)/2;
495 double wx = fabs(arg->x1-arg->x2)/2;
553 line_check(double x, double y, double x1, double y1, double x2, double y2,
556 /* Shift all the points to (arg->x1, arg->y1) */
557 double lx = x2 - x1;
562 x -= x1;
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 */
681 arg->x1 = coordinate_of(argv[3]);
829 " shape ::= color width shape x1 y1 x2 y2\n"
834 " x1,x2 ::= <number>\n"