PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ 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 621 of file gserialized_estimate.c.

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

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

622 {
623  int d;
624  for ( d = 0; d < ndims; d++ )
625  {
626  if ( (a->min[d] > b->max[d]) || (a->max[d] < b->min[d]) )
627  return false;
628  }
629  return true;
630 }
float4 max[ND_DIMS]
float4 min[ND_DIMS]
Here is the caller graph for this function: