PostGIS
3.4.0dev-r@@SVN_REVISION@@
|
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 at line 948 of file lwgeodetic.c.
References FP_EQUALS, GEOGRAPHIC_POINT::lat, GEOGRAPHIC_POINT::lon, POW2, and s.
Referenced by circ_internal_nodes_sort(), circ_node_internal_new(), circ_node_leaf_new(), circ_node_max_distance(), circ_node_min_distance(), circ_tree_distance_tree(), circ_tree_distance_tree_internal(), edge_calculate_gbox_slow(), edge_distance_to_point(), geography_interpolate_points(), geography_substring(), interpolate_point4d_spheroid(), ptarray_distance_spheroid(), ptarray_length_spheroid(), ptarray_locate_point_spheroid(), ptarray_segmentize_sphere(), test_sphere_direction(), and test_sphere_project().