X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmath%2Fsg_types.hxx;h=f413c26b58359eb66f13f00c6773132562e2bffd;hb=dfea3623f6549c9173fed5149da41285863fc290;hp=b2bf6cac08fb5d7bfad5b527954ff21b3e50669b;hpb=7fc8c026884b2d0a1b683765c089a9bef5ac47c8;p=simgear.git diff --git a/simgear/math/sg_types.hxx b/simgear/math/sg_types.hxx index b2bf6cac..f413c26b 100644 --- a/simgear/math/sg_types.hxx +++ b/simgear/math/sg_types.hxx @@ -17,10 +17,9 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Library General Public License for more details. // -// You should have received a copy of the GNU Library General Public -// License along with this library; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ @@ -29,20 +28,20 @@ #define _SG_TYPES_HXX -#ifndef __cplusplus +#ifndef __cplusplus # error This library requires C++ -#endif +#endif #include -#include STL_STRING +#include #include -#include +class Point3D; -SG_USING_STD(vector); -SG_USING_STD(string); +using std::vector; +using std::string; /** STL vector list of ints */ typedef vector < int > int_list; @@ -64,25 +63,5 @@ typedef vector < string > string_list; typedef string_list::iterator string_list_iterator; typedef string_list::const_iterator const_string_list_iterator; - -/** - * Simple 2d point class where members can be accessed as x, dist, or lon - * and y, theta, or lat - */ -class point2d { -public: - union { - double x; - double dist; - double lon; - }; - union { - double y; - double theta; - double lat; - }; -}; - - #endif // _SG_TYPES_HXX