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

Definition at line 260 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().

261 {
262  if ( ! a || ! b ) return FALSE; /* TODO: might be smarter for EMPTY */
263 
264  if ( (a->xmin > b->xmax) || (b->xmin > a->xmax) ||
265  (a->ymin > b->ymax) || (b->ymin > a->ymax) )
266  {
267  return FALSE;
268  }
269 
270  return TRUE;
271 }
#define FALSE
Definition: dbfopen.c:169
#define TRUE
Definition: dbfopen.c:170

Here is the caller graph for this function: