2 Copyright 2006 Johnathan Corgan.
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.
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.
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.
19 #ifndef __SPHERICAL_H__
20 #define __SPHERICAL_H__
23 #include <wx/string.h>
29 Spherical(double latitude, double longitude);
30 Spherical(wxString latitude, wxString longitude);
32 double Latitude() const { return m_latitude; }
33 double Longitude() const { return m_longitude; }
34 void SetLatitude(double latitude);
35 void SetLongitude(double longitude);
41 friend double range(const Spherical &from, const Spherical &to);
42 friend double bearing(const Spherical &from, const Spherical &to);
45 #endif // __SPHERICAL_H__