PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ box2df_overlaps()

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

Definition at line 355 of file gserialized_gist_2d.c.

356 {
357  if ( !a || !b || box2df_is_empty(a) || box2df_is_empty(b) )
358  return false;
359 
360  if ( (a->xmin > b->xmax) || (b->xmin > a->xmax) ||
361  (a->ymin > b->ymax) || (b->ymin > a->ymax) )
362  {
363  return false;
364  }
365 
366  return true;
367 }
bool box2df_is_empty(const BOX2DF *a)

References box2df_is_empty().

Referenced by box2df_distance(), gserialized_gist_consistent_internal_2d(), gserialized_gist_consistent_leaf_2d(), gserialized_overlaps_2d(), gserialized_overlaps_box2df_box2df_2d(), gserialized_overlaps_box2df_geom_2d(), and gserialized_spgist_leaf_consistent_2d().

Here is the call graph for this function:
Here is the caller graph for this function: