Skip to main content

geodesic_direct

Function geodesic_direct 

Source
pub fn geodesic_direct(
    lat1_deg: f64,
    lon1_deg: f64,
    azi1_deg: f64,
    s12_m: f64,
) -> Result<(f64, f64, f64), GeodesicError>
Expand description

Solve the WGS84 direct geodesic problem.

Inputs are point 1 latitude, longitude, forward azimuth, and geodesic distance. Angles are degrees and s12_m is meters. Longitudes and azimuths may be outside one turn; they are reduced by the geodesic solver. The returned tuple is (lat2_deg, lon2_deg, azi2_deg).