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

◆ gbox_contains_point2d()

int gbox_contains_point2d ( const GBOX g,
const POINT2D p 
)

Definition at line 350 of file gbox.c.

351{
352 if ( ( g->xmin <= p->x ) && ( g->xmax >= p->x ) &&
353 ( g->ymin <= p->y ) && ( g->ymax >= p->y ) )
354 {
355 return LW_TRUE;
356 }
357 return LW_FALSE;
358}
#define LW_FALSE
Definition liblwgeom.h:108
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:107
double ymax
Definition liblwgeom.h:343
double xmax
Definition liblwgeom.h:341
double ymin
Definition liblwgeom.h:342
double xmin
Definition liblwgeom.h:340
double y
Definition liblwgeom.h:376
double x
Definition liblwgeom.h:376

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

Referenced by ptarray_npoints_in_rect().

Here is the caller graph for this function: