]> git.mxchange.org Git - simgear.git/blob - simgear/math/fg_types.hxx
One more pass at reorgs.
[simgear.git] / simgear / math / fg_types.hxx
1 // fg_types.hxx -- commonly used types I don't want to have to keep redefining
2 //
3 // Written by Curtis Olson, started March 1999.
4 //
5 // Copyright (C) 1999  Curtis L. Olson  - curt@flightgear.org
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 // General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 //
21 // $Id$
22
23
24 #ifndef _FG_TYPES_HXX
25 #define _FG_TYPES_HXX
26
27
28 #ifndef __cplusplus                                                          
29 # error This library requires C++
30 #endif                                   
31
32
33 #include <simgear/compiler.h>
34
35 #include STL_STRING
36 #include <vector>
37
38 #include <simgear/math/point3d.hxx>
39
40 FG_USING_STD(vector);
41 FG_USING_STD(string);
42
43
44 typedef vector < int > int_list;
45 typedef int_list::iterator int_list_iterator;
46 typedef int_list::const_iterator const_int_list_iterator;
47
48 typedef vector < Point3D > point_list;
49 typedef point_list::iterator point_list_iterator;
50 typedef point_list::const_iterator const_point_list_iterator;
51
52 typedef vector < string > string_list;
53 typedef string_list::iterator string_list_iterator;
54 typedef string_list::const_iterator const_string_list_iterator;
55
56
57 class point2d {
58 public:
59     union {
60         double x;
61         double dist;
62         double lon;
63     };
64     union {
65         double y;
66         double theta;
67         double lat;
68     };
69 };
70
71
72 #endif // _FG_TYPES_HXX
73