pub fn calculate_haversine_distance(
point_a: Point2<f32>,
point_b: Point2<f32>,
sphere_radius: f32,
) -> f32Expand description
Calculates the Haversine distance between two points on a sphere using single-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 ‘f32’, the distance between point_a and point_b along the surface of the sphere, using the Haversine formula.