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

◆ rect_node_bounds_point()

static int rect_node_bounds_point ( RECT_NODE node,
const POINT2D pt 
)
static

Definition at line 384 of file lwtree.c.

385{
386 if (pt->y < node->ymin || pt->y > node->ymax ||
387 pt->x < node->xmin || pt->x > node->xmax)
388 return LW_FALSE;
389 else
390 return LW_TRUE;
391}
#define LW_FALSE
Definition liblwgeom.h:94
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:93
double y
Definition liblwgeom.h:390
double x
Definition liblwgeom.h:390
double ymin
Definition lwtree.h:71
double xmax
Definition lwtree.h:70
double ymax
Definition lwtree.h:72
double xmin
Definition lwtree.h:69

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

Referenced by rect_tree_contains_point().

Here is the caller graph for this function: