PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ gbox_same_2d()

int gbox_same_2d ( const GBOX g1,
const GBOX g2 

Check if 2 given GBOX are the same in x and y.

Definition at line 156 of file g_box.c.

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

Referenced by gbox_same(), and test_gbox_same_2d().

157 {
158  if (g1->xmin == g2->xmin && g1->ymin == g2->ymin &&
159  g1->xmax == g2->xmax && g1->ymax == g2->ymax)
160  return LW_TRUE;
161  return LW_FALSE;
162 }
double xmax
Definition: liblwgeom.h:277
double ymin
Definition: liblwgeom.h:278
double xmin
Definition: liblwgeom.h:276
#define LW_FALSE
Definition: liblwgeom.h:62
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61
double ymax
Definition: liblwgeom.h:279
Here is the caller graph for this function: