PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ box2df_overlaps()

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

Definition at line 257 of file gserialized_gist_2d.c.

References FALSE, and TRUE.

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

258 {
259  if ( ! a || ! b ) return FALSE; /* TODO: might be smarter for EMPTY */
260 
261  if ( (a->xmin > b->xmax) || (b->xmin > a->xmax) ||
262  (a->ymin > b->ymax) || (b->ymin > a->ymax) )
263  {
264  return FALSE;
265  }
266 
267  return TRUE;
268 }
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: