63 lines
1.4 KiB
C++
63 lines
1.4 KiB
C++
|
// point2d.hxx -- define a 2d point class
|
||
|
//
|
||
|
// Written by Curtis Olson, started February 1998.
|
||
|
//
|
||
|
// Copyright (C) 1998 Curtis L. Olson - curt@me.umn.edu
|
||
|
//
|
||
|
// 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
//
|
||
|
// $Id$
|
||
|
// (Log is kept at end of this file)
|
||
|
//
|
||
|
|
||
|
|
||
|
#ifndef _POINT2D_HXX
|
||
|
#define _POINT2D_HXX
|
||
|
|
||
|
|
||
|
#include <list>
|
||
|
|
||
|
|
||
|
class point2d {
|
||
|
public:
|
||
|
union {
|
||
|
double x;
|
||
|
double dist;
|
||
|
double lon;
|
||
|
};
|
||
|
union {
|
||
|
double y;
|
||
|
double theta;
|
||
|
double lat;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
|
||
|
// convert a point from cartesian to polar coordinates
|
||
|
point2d cart_to_polar_2d(point2d in);
|
||
|
|
||
|
|
||
|
#endif // _POINT2D_HXX
|
||
|
|
||
|
|
||
|
// $Log$
|
||
|
// Revision 1.1 1999/03/10 16:09:45 curt
|
||
|
// Hacking towards the first working version.
|
||
|
//
|
||
|
// Revision 1.1 1998/09/04 23:04:53 curt
|
||
|
// Beginning of convex hull genereration routine.
|
||
|
//
|
||
|
//
|