Skip to main content

enu2ecef

Function enu2ecef 

Source
pub fn enu2ecef(
    e: f64,
    n: f64,
    u: f64,
    lat0: f64,
    lon0: f64,
    alt0: f64,
    r_ellips: Ellipsoid,
) -> (f64, f64, f64)
Expand description

Returns the tuple (x,y,z) of coordinates in the ECEF system

§Inputs:

  • e = east coordinate [m] from reference geodetic location
  • n = north coordinate [m] from reference geodetic location
  • u = up coordinate [m] from reference geodetic location
  • lat0 = reference latitude [rad]
  • lon0 = reference longitude [rad]
  • alt0 = reference altitude [m]
  • r_ellips = reference ellipsoid, defaults ref. frame is WGS84

§Outputs:

  • x = x ECEF coordinate [m]
  • y = y ECEF coordinate [m]
  • z = z ECEF coordinate [m]