LatLonToRangeAzimuth:

--------------------------------------------------------------------------
   Compute range and azimuth angle from a source site to a destination.
   Range is measured along the sphere. Azimuth is from north, [-pi,pi].
   The latitude and longitude are geocentric. Has a built-in demo.

   Since version 2015.1
--------------------------------------------------------------------------
   Form:
   [range,az,coaz] = LatLonToRangeAzimuth( lat0, lon0, latF, lonF, 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 from source site to satellite
   coaz        (1,:)      Azimuth angle back to source from satellite

--------------------------------------------------------------------------
   See also RAzToLatLon.
--------------------------------------------------------------------------
   References:   Zarchan, P. (2002) Tactical and Strategic Missile
                    Guidance, 4th Edition, pp. 239-244.
--------------------------------------------------------------------------

Children:

Common: Graphics/NewFig