PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ box2df_equals()

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

Definition at line 297 of file gserialized_gist_2d.c.

298 {
299  if ( !a && !b )
300  return true;
301  else if ( !a || !b )
302  return false;
303  else if ( box2df_is_empty(a) && box2df_is_empty(b) )
304  return true;
305  else if ( box2df_is_empty(a) || box2df_is_empty(b) )
306  return false;
307  else if ((a->xmin == b->xmin) && (a->xmax == b->xmax) && (a->ymin == b->ymin) && (a->ymax == b->ymax))
308  return true;
309  else
310  return false;
311 }
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: