PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ box2df_within()

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

Definition at line 266 of file gserialized_gist_2d.c.

267 {
268  if ( !a || !b )
269  return false;
270 
271  /* EMPTY is within all other things (except EMPTY) */
272  if ( box2df_is_empty(a) && ! box2df_is_empty(b) )
273  return true;
274 
275  if ( (a->xmin < b->xmin) || (a->xmax > b->xmax) ||
276  (a->ymin < b->ymin) || (a->ymax > b->ymax) )
277  {
278  return false;
279  }
280 
281  return true;
282 }
bool box2df_is_empty(const BOX2DF *a)

References box2df_is_empty().

Referenced by gserialized_gist_consistent_leaf_2d(), gserialized_within_2d(), gserialized_within_box2df_box2df_2d(), and gserialized_within_box2df_geom_2d().

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