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

Definition at line 270 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().

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

Here is the caller graph for this function: