PostGIS  2.1.10dev-r@@SVN_REVISION@@
static double circ_node_max_distance ( const CIRC_NODE n1,
const CIRC_NODE n2 

Definition at line 547 of file lwgeodetic_tree.c.

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

Referenced by circ_tree_distance_tree_internal().

548 {
549  return sphere_distance(&(n1->center), &(n2->center)) + n1->radius + n2->radius;
550 }
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:897
double radius

Here is the call graph for this function:

Here is the caller graph for this function: