PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ box2df_equals()

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

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

316 {
317  if ( a && b ) {
318  if ( (a->xmin != b->xmin) || (a->xmax != b->xmax) ||
319  (a->ymin != b->ymin) || (a->ymax != b->ymax) )
320  {
321  return FALSE;
322  }
323  return TRUE;
324  } else if ( a || b ) {
325  /* one empty, one not */
326  return FALSE;
327  } else {
328  /* both empty */
329  return TRUE;
330  }
331 }
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: