00001 #pragma ident "$Id: WGS84Geoid.hpp 1950 2009-06-17 20:27:37Z afarris $" 00002 00003 //============================================================================ 00004 // 00005 // This file is part of GPSTk, the GPS Toolkit. 00006 // 00007 // The GPSTk is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU Lesser General Public License as published 00009 // by the Free Software Foundation; either version 2.1 of the License, or 00010 // any later version. 00011 // 00012 // The GPSTk is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU Lesser General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU Lesser General Public 00018 // License along with GPSTk; if not, write to the Free Software Foundation, 00019 // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 // 00021 // Copyright 2004, The University of Texas at Austin 00022 // 00023 //============================================================================ 00024 00025 //============================================================================ 00026 // 00027 //This software developed by Applied Research Laboratories at the University of 00028 //Texas at Austin, under contract to an agency or agencies within the U.S. 00029 //Department of Defense. The U.S. Government retains all rights to use, 00030 //duplicate, distribute, disclose, or release this software. 00031 // 00032 //Pursuant to DoD Directive 523024 00033 // 00034 // DISTRIBUTION STATEMENT A: This software has been approved for public 00035 // release, distribution is unlimited. 00036 // 00037 //============================================================================= 00038 00044 #ifndef GPSTK_WGS84GEOID_HPP 00045 #define GPSTK_WGS84GEOID_HPP 00046 00047 #include "GeoidModel.hpp" 00048 00049 namespace gpstk 00050 { 00053 00056 class WGS84Geoid : public GeoidModel 00057 { 00058 public: 00059 00062 virtual double a() const throw() 00063 { return 6378137.0; } 00064 00067 virtual double a_km() const throw() 00068 { return a() / 1000.0; } 00069 00074 virtual double flattening() const throw() 00075 { return 0.335281066475e-2; } 00076 00079 virtual double eccentricity() const throw() 00080 { return 8.1819190842622e-2; } 00081 00084 virtual double eccSquared() const throw() 00085 { return 6.69437999014e-3; } 00086 00089 virtual double angVelocity() const throw() 00090 { return 7.292115e-5; } 00091 00094 virtual double gm() const throw() 00095 { return 3986004.418e8; } 00096 00099 virtual double gm_km() const throw() 00100 { return 398600.4418; } 00101 00104 virtual double c() const throw() 00105 { return 299792458; } 00106 00109 virtual double c_km() const throw() 00110 { return c()/1000.0; } 00111 00113 virtual ~WGS84Geoid() throw() {}; 00114 00115 }; // class WGS84Geoid 00116 00118 00119 } // namespace 00120 00121 #endif
1.3.9.1