src/bbox.c
static int bbox_intersect_ondim(const struct bbox *b0, const struct bbox *b1,
                                int dim)
{
    if((b0->lb.c[dim] <= b1->lb.c[dim] && b1->lb.c[dim] <= b0->ub.c[dim]) ||
       (b1->lb.c[dim] <= b0->lb.c[dim] && b0->lb.c[dim] <= b1->ub.c[dim]))
        return 1;
    else
        return 0;
}
/*
  Test if bounding boxes b0 and b1 intersect along dimension dim.
*/
Test if bounding boxes b0 and b1 intersect along dimension dim.
Test if bounding boxes b0 and b1 intersect along dimension dim .
static int bbox_intersect_ondim(const struct bbox *b0, const struct bbox *b1,
                                int dim)
{
    if((b0->lb.c[dim] <= b1->lb.c[dim] && b1->lb.c[dim] <= b0->ub.c[dim]) ||
       (b1->lb.c[dim] <= b0->lb.c[dim] && b0->lb.c[dim] <= b1->ub.c[dim]))
        return 1;
    else
        return 0;
}
static int bbox_intersect_ondim ( const struct bbox * b0 , const struct bbox * b1 , int dim ) { if ( ( b0 -> lb . c [ dim ] <= b1 -> lb . c [ dim ] && b1 -> lb . c [ dim ] <= b0 -> ub . c [ dim ] ) || ( b1 -> lb . c [ dim ] <= b0 -> lb . c [ dim ] && b0 -> lb . c [ dim ] <= b1 -> ub . c [ dim ] ) ) return 1 ; else return 0 ; }
Test if bounding boxes b0 and b1 intersect along dimension dim.
Test if bounding boxes b0 and b1 intersect along dimension dim .