PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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 179 of file gbox.c.

180{
181 if (g1->xmin == g2->xmin && g1->ymin == g2->ymin &&
182 g1->xmax == g2->xmax && g1->ymax == g2->ymax)
183 return LW_TRUE;
184 return LW_FALSE;
185}
#define LW_FALSE
Definition liblwgeom.h:94
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:93
double ymax
Definition liblwgeom.h:357
double xmax
Definition liblwgeom.h:355
double ymin
Definition liblwgeom.h:356
double xmin
Definition liblwgeom.h:354

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

Referenced by gbox_same(), and test_gbox_same_2d().

Here is the caller graph for this function: