PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rect_node_to_p2d()

static void rect_node_to_p2d ( const RECT_NODE n,
POINT2D pt 
)
inlinestatic

Definition at line 1237 of file lwtree.c.

1238 {
1239  pt->x = (n->xmin + n->xmax)/2;
1240  pt->y = (n->ymin + n->ymax)/2;
1241 }
double y
Definition: liblwgeom.h:331
double x
Definition: liblwgeom.h:331
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 POINT2D::x, rect_node::xmax, rect_node::xmin, POINT2D::y, rect_node::ymax, and rect_node::ymin.

Referenced by rect_tree_node_sort().

Here is the caller graph for this function: