PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ BOX2D_contained()

Datum BOX2D_contained ( PG_FUNCTION_ARGS  )

Definition at line 315 of file lwgeom_box.c.

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

Referenced by BOX2D_overabove().

316 {
317  GBOX *box1 =(GBOX *) PG_GETARG_POINTER(0);
318  GBOX *box2 = (GBOX *) PG_GETARG_POINTER(1);
319 
320  PG_RETURN_BOOL(FPle(box1->xmax, box2->xmax) &&
321  FPge(box1->xmin, box2->xmin) &&
322  FPle(box1->ymax, box2->ymax) &&
323  FPge(box1->ymin, box2->ymin));
324 }
double xmax
Definition: liblwgeom.h:293
double ymin
Definition: liblwgeom.h:294
double xmin
Definition: liblwgeom.h:292
double ymax
Definition: liblwgeom.h:295
Here is the call graph for this function:
Here is the caller graph for this function: