LatLonToRAz:

Path: Orbit/OrbitCoord

% Compute range and azimuth angle between two points on a sphere.
 Range is measured along the sphere. Azimuth is from north towards East.
 The latitude and longitude are geocentric.
 See also RAzToLatLon.
--------------------------------------------------------------------------
   Form:
   [r,az] = LatLonToRAz( lat0, lon0, lat, lon, Rp );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   lat0         (1)       Initial Latitude     [rad]
   lon0         (1)       Initial Longitude    [rad]
   latF        (1,:)      Final Latitude       [rad]
   lonF        (1,:)      Final Longitude      [rad]
   Rp          (1,1)      Radius of the planet [km]

   -------
   Outputs
   -------
   range       (1,:)      Range along Earth's surface (km)
   az          (1,:)      Azimuth angle back to source site

--------------------------------------------------------------------------

Back to the Orbit Module page