PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ BOX2D_same()

Datum BOX2D_same ( PG_FUNCTION_ARGS  )

Definition at line 167 of file lwgeom_box.c.

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

Referenced by LWGEOM_to_BOX2DF().

168 {
169  GBOX *box1 = (GBOX *) PG_GETARG_POINTER(0);
170  GBOX *box2 = (GBOX *) PG_GETARG_POINTER(1);
171 
172  PG_RETURN_BOOL(FPeq(box1->xmax, box2->xmax) &&
173  FPeq(box1->xmin, box2->xmin) &&
174  FPeq(box1->ymax, box2->ymax) &&
175  FPeq(box1->ymin, box2->ymin));
176 }
double xmax
Definition: liblwgeom.h:292
double ymin
Definition: liblwgeom.h:293
double xmin
Definition: liblwgeom.h:291
double ymax
Definition: liblwgeom.h:294
#define FPeq(A, B)
Definition: box2d.c:37
Here is the call graph for this function:
Here is the caller graph for this function: