PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ box2df_overlaps()

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

Definition at line 316 of file gserialized_gist_2d.c.

References FALSE, and TRUE.

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

317 {
318  if ( ! a || ! b ) return FALSE; /* TODO: might be smarter for EMPTY */
319 
320  if ( (a->xmin > b->xmax) || (b->xmin > a->xmax) ||
321  (a->ymin > b->ymax) || (b->ymin > a->ymax) )
322  {
323  return FALSE;
324  }
325 
326  return TRUE;
327 }
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: