PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ box2df_contains()

bool box2df_contains ( const BOX2DF *  a,
const BOX2DF *  b 
)

Definition at line 329 of file gserialized_gist_2d.c.

References FALSE, and TRUE.

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

330 {
331  if ( ! a || ! b ) return FALSE; /* TODO: might be smarter for EMPTY */
332 
333  if ( (a->xmin > b->xmin) || (a->xmax < b->xmax) ||
334  (a->ymin > b->ymin) || (a->ymax < b->ymax) )
335  {
336  return FALSE;
337  }
338 
339  return TRUE;
340 }
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: