PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ box2df_within()

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

Definition at line 387 of file gserialized_gist_2d.c.

388 {
389  if ( !a || !b )
390  return false;
391 
392  /* EMPTY is within all other things (except EMPTY) */
393  if ( box2df_is_empty(a) && ! box2df_is_empty(b) )
394  return true;
395 
396  POSTGIS_DEBUG(5, "entered function");
397  return box2df_contains(b,a);
398 }
bool box2df_is_empty(const BOX2DF *a)
bool box2df_contains(const BOX2DF *a, const BOX2DF *b)

References box2df_contains(), and box2df_is_empty().

Referenced by 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: