head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.38; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.55; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.54.01; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.21.57; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# magvar.hxx

Go to the documentation of this file.

    00001
    00006 // Written by Curtis Olson, started July 2000.
    00007 //
    00008 // Copyright (C) 2000  Curtis L. Olson  - curt@@flightgear.org
    00009 //
    00010 // This program is free software; you can redistribute it and/or
    00011 // modify it under the terms of the GNU General Public License as
    00012 // published by the Free Software Foundation; either version 2 of the
    00013 // License, or (at your option) any later version.
    00014 //
    00015 // This program is distributed in the hope that it will be useful, but
    00016 // WITHOUT ANY WARRANTY; without even the implied warranty of
    00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00018 // General Public License for more details.
    00019 //
    00020 // You should have received a copy of the GNU General Public License
    00021 // along with this program; if not, write to the Free Software
    00022 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    00023 //
    00024 // $Id: magvar.hxx,v 1.6 2001/05/15 19:26:23 curt Exp $
    00025
    00026
    00027 #ifndef _MAGVAR_HXX
    00028 #define _MAGVAR_HXX
    00029
    00030
    00031 #ifndef __cplusplus
    00032 # error This library requires C++
    00033 #endif
    00034
    00035
    00051 class SGMagVar {
    00052
    00053 private:
    00054
    00055     double magvar;
    00056     double magdip;
    00057
    00058 public:
    00059
    00064     SGMagVar();
    00065
    00067     ~SGMagVar();
    00068
    00079     void update( double lon, double lat, double alt_m, double jd );
    00080
    00082     double get_magvar() const { return magvar; }
    00083
    00085     double get_magdip() const { return magdip; }
    00086 };
    00087
    00088
    00096 double sgGetMagVar( double lon, double lat, double alt_m, double jd );
    00097
    00098
    00099 #endif // _MAGVAR_HXX

@ 1.3 log @Oops, try again. @ text @d65 1 a65 1