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

Definition at line 355 of file gserialized_gist_2d.c.

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(), and gserialized_overlaps_box2df_geom_2d().

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)

Here is the call graph for this function:

Here is the caller graph for this function: