PostGIS  2.1.10dev-r@@SVN_REVISION@@
Datum BOX2D_contained ( PG_FUNCTION_ARGS  )

Definition at line 273 of file lwgeom_box.c.

References GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.

274 {
275  GBOX *box1 =(GBOX *) PG_GETARG_POINTER(0);
276  GBOX *box2 = (GBOX *) PG_GETARG_POINTER(1);
277 
278  PG_RETURN_BOOL(FPle(box1->xmax, box2->xmax) &&
279  FPge(box1->xmin, box2->xmin) &&
280  FPle(box1->ymax, box2->ymax) &&
281  FPge(box1->ymin, box2->ymin));
282 }
double xmax
Definition: liblwgeom.h:249
double ymin
Definition: liblwgeom.h:250
double xmin
Definition: liblwgeom.h:248
double ymax
Definition: liblwgeom.h:251