PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ box2df_equals()

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

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

351 {
352  if ( a && b ) {
353  if ( (a->xmin != b->xmin) || (a->xmax != b->xmax) ||
354  (a->ymin != b->ymin) || (a->ymax != b->ymax) )
355  {
356  return FALSE;
357  }
358  return TRUE;
359  } else if ( a || b ) {
360  /* one empty, one not */
361  return FALSE;
362  } else {
363  /* both empty */
364  return TRUE;
365  }
366 }
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: