|
#define | HAVE_POINTF_S |
|
#define | INSIDE(p, b) (BETWEEN((b).LL.x,(p).x,(b).UR.x) && BETWEEN((b).LL.y,(p).y,(b).UR.y)) |
|
#define | OVERLAP(b0, b1) (((b0).UR.x >= (b1).LL.x) && ((b1).UR.x >= (b0).LL.x) && ((b0).UR.y >= (b1).LL.y) && ((b1).UR.y >= (b0).LL.y)) |
|
#define | CONTAINS(b0, b1) (((b0).UR.x >= (b1).UR.x) && ((b0).UR.y >= (b1).UR.y) && ((b0).LL.x <= (b1).LL.x) && ((b0).LL.y <= (b1).LL.y)) |
|
#define | EXPANDBP(b, p) ((b).LL.x = MIN((b).LL.x, (p).x), (b).LL.y = MIN((b).LL.y, (p).y), (b).UR.x = MAX((b).UR.x, (p).x), (b).UR.y = MAX((b).UR.y, (p).y)) |
|
#define | EXPANDBB(b0, b1) ((b0).LL.x = MIN((b0).LL.x, (b1).LL.x), (b0).LL.y = MIN((b0).LL.y, (b1).LL.y), (b0).UR.x = MAX((b0).UR.x, (b1).UR.x), (b0).UR.y = MAX((b0).UR.y, (b1).UR.y)) |
|
#define | LEN2(a, b) (SQR(a) + SQR(b)) |
|
#define | DIST2(p, q) (LEN2(((p).x - (q).x),((p).y - (q).y))) |
|
#define | DIST(p, q) (sqrt(DIST2((p),(q)))) |
|
#define | POINTS_PER_INCH 72 |
|
#define | POINTS_PER_CM ((double)POINTS_PER_INCH * 0.393700787) |
|
#define | POINTS_PER_MM ((double)POINTS_PER_INCH * 0.0393700787) |
|
#define | POINTS(a_inches) (ROUND((a_inches)*POINTS_PER_INCH)) |
|
#define | INCH2PS(a_inches) ((a_inches)*(double)POINTS_PER_INCH) |
|
#define | PS2INCH(a_points) ((a_points)/(double)POINTS_PER_INCH) |
|
#define | P2PF(p, pf) ((pf).x = (p).x,(pf).y = (p).y) |
|
#define | PF2P(pf, p) ((p).x = ROUND((pf).x),(p).y = ROUND((pf).y)) |
|
#define | B2BF(b, bf) (P2PF((b).LL,(bf).LL),P2PF((b).UR,(bf).UR)) |
|
#define | APPROXEQPT(p, q, tol) (DIST2((p),(q)) < SQR(tol)) |
|
#define | MILLIPOINT .001 |
|
with application to, but no specific dependence on graphs
Definition in file geom.h.