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

◆ nd_box_intersects()

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

Return true if ND_BOX a overlaps b, false otherwise.

Definition at line 533 of file gserialized_estimate.c.

534{
535 int d;
536 for ( d = 0; d < ndims; d++ )
537 {
538 if ( (a->min[d] > b->max[d]) || (a->max[d] < b->min[d]) )
539 return false;
540 }
541 return true;
542}

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

Referenced by compute_gserialized_stats_mode(), estimate_join_selectivity(), and estimate_selectivity().

Here is the caller graph for this function: