Calculate the box->box distance.
542 return pt_distance(a->xmax, a->ymin, b->xmin, b->ymax);
544 return pt_distance(a->xmax, a->ymax, b->xmin, b->ymin);
546 return (
double)b->xmin - (double)a->xmax;
551 return pt_distance(a->xmin, a->ymin, b->xmax, b->ymax);
553 return pt_distance(a->xmin, a->ymax, b->xmax, b->ymin);
555 return (
double)a->xmin - (double)b->xmax;
560 return pt_distance(a->xmax, a->ymin, b->xmin, b->ymax);
562 return pt_distance(a->xmin, a->ymin, b->xmax, b->ymax);
564 return (
double)a->ymin - (double)b->ymax;
569 return pt_distance(a->xmax, a->ymax, b->xmin, b->ymin);
571 return pt_distance(a->xmin, a->ymax, b->xmax, b->ymin);
573 return (
double)b->ymin - (double)a->ymax;
static bool box2df_overlaps(const BOX2DF *a, const BOX2DF *b)
static bool box2df_left(const BOX2DF *a, const BOX2DF *b)
static bool box2df_below(const BOX2DF *a, const BOX2DF *b)
static bool box2df_right(const BOX2DF *a, const BOX2DF *b)
static bool box2df_above(const BOX2DF *a, const BOX2DF *b)
static double pt_distance(double ax, double ay, double bx, double by)