PostGIS  2.2.7dev-r@@SVN_REVISION@@
Datum BOX2D_same ( PG_FUNCTION_ARGS  )

Definition at line 153 of file lwgeom_box.c.

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

154 {
155  GBOX *box1 = (GBOX *) PG_GETARG_POINTER(0);
156  GBOX *box2 = (GBOX *) PG_GETARG_POINTER(1);
157 
158  PG_RETURN_BOOL(FPeq(box1->xmax, box2->xmax) &&
159  FPeq(box1->xmin, box2->xmin) &&
160  FPeq(box1->ymax, box2->ymax) &&
161  FPeq(box1->ymin, box2->ymin));
162 }
double xmax
Definition: liblwgeom.h:277
double ymin
Definition: liblwgeom.h:278
double xmin
Definition: liblwgeom.h:276
double ymax
Definition: liblwgeom.h:279
#define FPeq(A, B)
Definition: box2d.c:11