PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ BOX2D_contain()

Datum BOX2D_contain ( PG_FUNCTION_ARGS  )

Definition at line 308 of file lwgeom_box.c.

References BOX2D_intersects(), PG_FUNCTION_INFO_V1(), GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.

Referenced by BOX2D_contained().

309 {
310  GBOX *box1 = (GBOX *) PG_GETARG_POINTER(0);
311  GBOX *box2 = (GBOX *) PG_GETARG_POINTER(1);
312 
313  PG_RETURN_BOOL(FPge(box1->xmax, box2->xmax) &&
314  FPle(box1->xmin, box2->xmin) &&
315  FPge(box1->ymax, box2->ymax) &&
316  FPle(box1->ymin, box2->ymin));
317 
318 }
double xmax
Definition: liblwgeom.h:277
double ymin
Definition: liblwgeom.h:278
double xmin
Definition: liblwgeom.h:276
double ymax
Definition: liblwgeom.h:279
Here is the call graph for this function:
Here is the caller graph for this function: