Code covered by the BSD License  

Highlights from
Geodesics on an ellipsoid of revolution (DEPRECATED)

image thumbnail

Geodesics on an ellipsoid of revolution (DEPRECATED)

by

 

20 Nov 2012 (Updated )

Solutions of the direct and inverse geodesic problems

defaultellipsoid
function ellipsoid = defaultellipsoid
%DEFAULTELLIPSOID  Return the WGS84 ellipsoid
%
%   ellipsoid = DEFAULTELLIPSOID
%
%   returns a vector of the equatorial radius and eccentricity for the
%   WGS84 ellipsoid.  use ecc2flat and flat2ecc to convert between
%   the eccentricity and the flattening.
%
%   See also ECC2FLAT, FLAT2ECC.

  a = 6378137;
  f = 1/298.257223563;
  e = flat2ecc(f);
  ellipsoid = [a, e];
end

Contact us