PostGIS  2.3.6-r@@SVN_REVISION@@
bool box2df_contains ( const BOX2DF *  a,
const BOX2DF *  b 
)

Definition at line 294 of file gserialized_gist_2d.c.

References FALSE, and TRUE.

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

295 {
296  if ( ! a || ! b ) return FALSE; /* TODO: might be smarter for EMPTY */
297 
298  if ( (a->xmin > b->xmin) || (a->xmax < b->xmax) ||
299  (a->ymin > b->ymin) || (a->ymax < b->ymax) )
300  {
301  return FALSE;
302  }
303 
304  return TRUE;
305 }
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169

Here is the caller graph for this function: