PostGIS  2.1.10dev-r@@SVN_REVISION@@
static bool box2df_contains ( const BOX2DF *  a,
const BOX2DF *  b 
)
static

Definition at line 273 of file gserialized_gist_2d.c.

References FALSE, and TRUE.

Referenced by box2df_within(), gserialized_contains_2d(), gserialized_gist_consistent_internal_2d(), and gserialized_gist_consistent_leaf_2d().

274 {
275  if ( ! a || ! b ) return FALSE; /* TODO: might be smarter for EMPTY */
276 
277  if ( (a->xmin > b->xmin) || (a->xmax < b->xmax) ||
278  (a->ymin > b->ymin) || (a->ymax < b->ymax) )
279  {
280  return FALSE;
281  }
282 
283  return TRUE;
284 }
#define FALSE
Definition: dbfopen.c:169
#define TRUE
Definition: dbfopen.c:170

Here is the caller graph for this function: