pub fn calculate_haversine_distance(
point_a: Point2<f64>,
point_b: Point2<f64>,
sphere_radius: f64,
) -> f64Expand description
Calculates the Haversine distance between two points on a sphere using double-precision floating-point arithmetic.
§Arguments
point_a: A `Point2’ representing the first geographical point.point_b: APoint2representing the second geographical point.sphere_radius: The radius of the sphere, typically the Earth’s radius in kilometers or miles.
§Returns
A ‘f64’, the distance between point_a and point_b along the surface of the sphere, using the Haversine formula.