PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ box2df_overlaps()

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

Definition at line 281 of file gserialized_gist_2d.c.

References FALSE, and TRUE.

Referenced by box2df_distance(), box2df_distance_node_centroid(), gserialized_datum_predicate_2d(), gserialized_gist_consistent_internal_2d(), gserialized_gist_consistent_leaf_2d(), and gserialized_overlaps_2d().

282 {
283  if ( ! a || ! b ) return FALSE; /* TODO: might be smarter for EMPTY */
284 
285  if ( (a->xmin > b->xmax) || (b->xmin > a->xmax) ||
286  (a->ymin > b->ymax) || (b->ymin > a->ymax) )
287  {
288  return FALSE;
289  }
290 
291  return TRUE;
292 }
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: