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

Definition at line 133 of file lwgeom_box.c.

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

134 {
135  GBOX *box1 = (GBOX *) PG_GETARG_POINTER(0);
136  GBOX *box2 = (GBOX *) PG_GETARG_POINTER(1);
137 
138  PG_RETURN_BOOL(FPeq(box1->xmax, box2->xmax) &&
139  FPeq(box1->xmin, box2->xmin) &&
140  FPeq(box1->ymax, box2->ymax) &&
141  FPeq(box1->ymin, box2->ymin));
142 }
double xmax
Definition: liblwgeom.h:249
double ymin
Definition: liblwgeom.h:250
double xmin
Definition: liblwgeom.h:248
double ymax
Definition: liblwgeom.h:251
#define FPeq(A, B)
Definition: box2d.c:11