1
0
Fork 0

Remove genapts850 point2d files

This commit is contained in:
Christian Schmitt 2012-10-11 10:05:31 +02:00
parent 040cb87873
commit 1abe94feba
3 changed files with 0 additions and 78 deletions

View file

@ -15,7 +15,6 @@ add_executable(genapts850
main.cxx
object.hxx object.cxx
parser.hxx parser.cxx
point2d.cxx point2d.hxx
runway.cxx runway.hxx
rwy_simple.cxx
rwy_gen.cxx

View file

@ -1,38 +0,0 @@
// point2d.cxx -- 2d coordinate routines
//
// Written by Curtis Olson, started September 1998.
//
// Copyright (C) 1998 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// 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 St, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id: point2d.cxx,v 1.2 2004-11-19 22:25:49 curt Exp $
//
#include <math.h>
#include "point2d.hxx"
// convert a point from cartesian to polar coordinates
Point3D cart_to_polar_2d(const Point3D& in) {
Point3D result( sqrt(in.x() * in.x() + in.y() * in.y()),
atan2(in.y(), in.x()),
0 );
return result;
}

View file

@ -1,39 +0,0 @@
// point2d.hxx -- define a 2d point class
//
// Written by Curtis Olson, started February 1998.
//
// Copyright (C) 1998 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// 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 St, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id: point2d.hxx,v 1.4 2004-11-19 22:25:49 curt Exp $
//
#ifndef _POINT2D_HXX
#define _POINT2D_HXX
#include <simgear/math/sg_types.hxx>
#include <Geometry/point3d.hxx>
// convert a point from cartesian to polar coordinates
Point3D cart_to_polar_2d(const Point3D& in);
#endif // _POINT2D_HXX