PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ box2df_equals()

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

Definition at line 400 of file gserialized_gist_2d.c.

401 {
402  if ( !a && !b )
403  return true;
404  else if ( !a || !b )
405  return false;
406  else if ( box2df_is_empty(a) && box2df_is_empty(b) )
407  return true;
408  else if ( box2df_is_empty(a) || box2df_is_empty(b) )
409  return false;
410  else if ((a->xmin == b->xmin) && (a->xmax == b->xmax) && (a->ymin == b->ymin) && (a->ymax == b->ymax))
411  return true;
412  else
413  return false;
414 }
bool box2df_is_empty(const BOX2DF *a)

References box2df_is_empty().

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

Here is the call graph for this function:
Here is the caller graph for this function: