PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ box2df_overlaps()

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

Definition at line 247 of file gserialized_gist_2d.c.

248 {
249  if ( !a || !b || box2df_is_empty(a) || box2df_is_empty(b) )
250  return false;
251 
252  if ( (a->xmin > b->xmax) || (b->xmin > a->xmax) ||
253  (a->ymin > b->ymax) || (b->ymin > a->ymax) )
254  {
255  return false;
256  }
257 
258  return true;
259 }
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: