Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

polygon.h

Go to the documentation of this file.
00001 //----------------------------------------------------------------------
00002 //               The Motion Strategy Library (MSL)
00003 //----------------------------------------------------------------------
00004 //
00005 // Copyright (c) University of Illinois and Steven M. LaValle.     
00006 // All Rights Reserved.
00007 //
00008 // Permission to use, copy, and distribute this software and its
00009 // documentation is hereby granted free of charge, provided that
00010 // (1) it is not a component of a commercial product, and
00011 // (2) this notice appears in all copies of the software and
00012 //     related documentation.
00013 //
00014 // The University of Illinois and the author make no representations
00015 // about the suitability or fitness of this software for any purpose.
00016 // It is provided "as is" without express or implied warranty.
00017 //----------------------------------------------------------------------
00018 
00019 #ifndef MSL_POLYGON_H
00020 #define MSL_POLYGON_H
00021 
00022 #ifdef WIN32
00023         #include <iostream>
00024         #include <list>
00025         using namespace std;
00026 #else
00027         #include <iostream.h>
00028         #include <list.h>
00029 #endif
00030 
00031 #include "mslio.h"
00032 #include "point.h"
00033 
00034 class MSLPolygon
00035 {
00036 public:
00037   list<MSLPoint> LPoints;
00038 
00039   MSLPolygon() {}
00040   ~MSLPolygon() {LPoints.clear();}
00041 
00042   friend istream& operator>>(istream& in, MSLPolygon& P);
00043   friend ostream& operator<<(ostream& out, const MSLPolygon& P);
00044 };
00045 
00046 istream& operator>>(istream& in, MSLPolygon& P);
00047 ostream& operator<<(ostream& out, const MSLPolygon& P);
00048 
00049 #endif
00050 
00051 
00052 
00053 
00054 
Motion Strategy Library


Web page maintained by Steve LaValle
Partial support provided by NSF CAREER Award IRI-970228 (LaValle), Honda Research.
Contributors: Anna Atramentov, Peng Cheng, James Kuffner, Steve LaValle, and Libo Yang.