PostGIS  2.3.7dev-r@@SVN_REVISION@@
Datum BOX2D_contain ( PG_FUNCTION_ARGS  )

Definition at line 322 of file lwgeom_box.c.

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

323 {
324  GBOX *box1 = (GBOX *) PG_GETARG_POINTER(0);
325  GBOX *box2 = (GBOX *) PG_GETARG_POINTER(1);
326 
327  PG_RETURN_BOOL(FPge(box1->xmax, box2->xmax) &&
328  FPle(box1->xmin, box2->xmin) &&
329  FPge(box1->ymax, box2->ymax) &&
330  FPle(box1->ymin, box2->ymin));
331 
332 }
double xmax
Definition: liblwgeom.h:292
double ymin
Definition: liblwgeom.h:293
double xmin
Definition: liblwgeom.h:291
double ymax
Definition: liblwgeom.h:294