PostGIS  2.1.10dev-r@@SVN_REVISION@@
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 544 of file gserialized_estimate.c.

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

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

545 {
546  int d;
547  for ( d = 0; d < ndims; d++ )
548  {
549  if ( (a->min[d] > b->max[d]) || (a->max[d] < b->min[d]) )
550  return FALSE;
551  }
552  return TRUE;
553 }
float4 max[ND_DIMS]
float4 min[ND_DIMS]
#define FALSE
Definition: dbfopen.c:169
#define TRUE
Definition: dbfopen.c:170

Here is the caller graph for this function: