Skip to main content

interpolate_great_circle

Function interpolate_great_circle 

Source
pub fn interpolate_great_circle(
    from: &GeoCoord,
    to: &GeoCoord,
    fraction: f64,
) -> GeoCoord
Expand description

Interpolate a point along the great-circle path between from and to.

fraction ranges from 0.0 (from) to 1.0 (to). Values outside [0, 1] extrapolate beyond the endpoints.