[−][src]Function map_3d::geodetic2ned
pub fn geodetic2ned(
lat: f64,
lon: f64,
alt: f64,
lat0: f64,
lon0: f64,
alt0: f64
) -> (f64, f64, f64)
Returns the tuple (north,east,down) of coordinates in the NED system
Inputs:
- lat = input latitude [rad]
- lon = input longitude [rad]
- alt = input altitude [m]
- lat0 = reference latitude [rad]
- lon0 = reference longitude [rad]
- alt0 = reference altitude [m]
Outputs:
- n = north coordinate [m] of input geodetic location from reference geodetic location
- e = east coordinate [m] of input geodetic location from reference geodetic location
- d = down coordinate [m] of input geodetic location from reference geodetic location