PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ nd_box_contains()

static int nd_box_contains ( const ND_BOX a,
const ND_BOX b,
int  ndims 
)
static

Return true if ND_BOX a contains b, false otherwise.

Definition at line 548 of file gserialized_estimate.c.

549{
550 int d;
551 for ( d = 0; d < ndims; d++ )
552 {
553 if ( ! ((a->min[d] < b->min[d]) && (a->max[d] > b->max[d])) )
554 return false;
555 }
556 return true;
557}

References ND_BOX_T::max, and ND_BOX_T::min.

Referenced by estimate_selectivity().

Here is the caller graph for this function: