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

◆ circ_node_min_distance()

static double circ_node_min_distance ( const CIRC_NODE n1,
const CIRC_NODE n2 
)
static

Definition at line 589 of file lwgeodetic_tree.c.

590{
591 double d = sphere_distance(&(n1->center), &(n2->center));
592 double r1 = n1->radius;
593 double r2 = n2->radius;
594
595 if ( d < r1 + r2 )
596 return 0.0;
597
598 return d - r1 - r2;
599}
double sphere_distance(const GEOGRAPHIC_POINT *s, const GEOGRAPHIC_POINT *e)
Given two points on a unit sphere, calculate their distance apart in radians.
Definition lwgeodetic.c:896
GEOGRAPHIC_POINT center

References circ_node::center, circ_node::radius, and sphere_distance().

Referenced by circ_tree_distance_tree_internal().

Here is the call graph for this function:
Here is the caller graph for this function: