PostGIS  2.4.9dev-r@@SVN_REVISION@@

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

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

Referenced by estimate_selectivity().

595 {
596  int d;
597  for ( d = 0; d < ndims; d++ )
598  {
599  if ( ! ((a->min[d] < b->min[d]) && (a->max[d] > b->max[d])) )
600  return FALSE;
601  }
602  return TRUE;
603 }
float4 max[ND_DIMS]
float4 min[ND_DIMS]
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: