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

◆ rect_node_max_distance()

static double rect_node_max_distance ( const RECT_NODE n1,
const RECT_NODE n2 
)
inlinestatic

Definition at line 1078 of file lwtree.c.

1079{
1080 double xmin = FP_MIN(n1->xmin, n2->xmin);
1081 double ymin = FP_MIN(n1->ymin, n2->ymin);
1082 double xmax = FP_MAX(n1->xmax, n2->xmax);
1083 double ymax = FP_MAX(n1->ymax, n2->ymax);
1084 double dx = xmax - xmin;
1085 double dy = ymax - ymin;
1086 //lwnotice("rect_node_max_distance");
1087 return sqrt(dx*dx + dy*dy);
1088}
#define FP_MAX(A, B)
#define FP_MIN(A, B)
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 FP_MAX, FP_MIN, rect_node::xmax, rect_node::xmin, rect_node::ymax, and rect_node::ymin.

Referenced by rect_tree_distance_tree_recursive().

Here is the caller graph for this function: