Updated FSF address in all files. Fixes ticket:51
[debian/gnuradio] / ezdop / src / host / hunter / src / spherical.h
1 /*
2  Copyright 2006 Johnathan Corgan.
3  
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License version 2
6  as published by the Free Software Foundation.
7  
8  This software is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  GNU General Public License for more details.
12  
13  You should have received a copy of the GNU General Public License
14  along with GNU Radio; see the file COPYING.  If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street,
16  Boston, MA 02110-1301, USA.
17 */
18
19 #ifndef __SPHERICAL_H__
20 #define __SPHERICAL_H__
21
22 // wxWidgets includes
23 #include <wx/string.h>
24
25 class Spherical
26 {
27 public:
28     Spherical();
29     Spherical(double latitude, double longitude);
30     Spherical(wxString latitude, wxString longitude);
31     
32     double Latitude() const { return m_latitude; }
33     double Longitude() const { return m_longitude; }
34     void SetLatitude(double latitude);
35     void SetLongitude(double longitude);    
36     
37 private:
38     double m_latitude;
39     double m_longitude;
40
41     friend double range(const Spherical &from, const Spherical &to);
42     friend double bearing(const Spherical &from, const Spherical &to);
43 };
44
45 #endif // __SPHERICAL_H__