src/bbox.c
int bbox_equals(const struct bbox *bb0, const struct bbox *bb1)
{
    int i;
    if(bb0->num_dims == bb1->num_dims) {
        for(i = 0; i < bb0->num_dims; i++) {
            if((bb0->lb.c[i] != bb1->lb.c[i]) || (bb0->ub.c[i] != bb1->ub.c[i]))
                return 0;
        }
        return 1;
    }
    return 0;
}
/*
  Test if two bounding boxes are equal.
*/
Test if two bounding boxes are equal.
Test if two bounding boxes are equal .
int bbox_equals(const struct bbox *bb0, const struct bbox *bb1)
{
    int i;
    if(bb0->num_dims == bb1->num_dims) {
        for(i = 0; i < bb0->num_dims; i++) {
            if((bb0->lb.c[i] != bb1->lb.c[i]) || (bb0->ub.c[i] != bb1->ub.c[i]))
                return 0;
        }
        return 1;
    }
    return 0;
}
int bbox_equals ( const struct bbox * bb0 , const struct bbox * bb1 ) { int i ; if ( bb0 -> num_dims == bb1 -> num_dims ) { for ( i = 0 ; i < bb0 -> num_dims ; i ++ ) { if ( ( bb0 -> lb . c [ i ] != bb1 -> lb . c [ i ] ) || ( bb0 -> ub . c [ i ] != bb1 -> ub . c [ i ] ) ) return 0 ; } return 1 ; } return 0 ; }
Test if two bounding boxes are equal.
Test if two bounding boxes are equal .