PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ box2df_equals()

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

Definition at line 291 of file gserialized_gist_2d.c.

References FALSE, and TRUE.

Referenced by gserialized_gist_consistent_leaf_2d(), gserialized_gist_same_2d(), and gserialized_same_2d().

292 {
293  if ( a && b ) {
294  if ( (a->xmin != b->xmin) || (a->xmax != b->xmax) ||
295  (a->ymin != b->ymin) || (a->ymax != b->ymax) )
296  {
297  return FALSE;
298  }
299  return TRUE;
300  } else if ( a || b ) {
301  /* one empty, one not */
302  return FALSE;
303  } else {
304  /* both empty */
305  return TRUE;
306  }
307 }
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: