[−][src]Function map_3d::ecef2enu
pub fn ecef2enu(
x: f64,
y: f64,
z: f64,
lat0: f64,
lon0: f64,
alt0: f64
) -> (f64, f64, f64)
Returns the tuple (east,north,up) of coordinates in the ENU system
Inputs:
- x = x ECEF coordinate [m]
- y = y ECEF coordinate [m]
- z = z ECEF coordinate [m]
- lat0 = reference latitude [rad]
- lon0 = reference longitude [rad]
- alt0 = reference altitude [m]
Outputs:
- e = east coordinate [m] of input ECEF location from reference geodetic location
- n = north coordinate [m] of input ECEF location from reference geodetic location
- u = up coordinate [m] of input ECEF location from reference geodetic location