/* Brian O'Connor * * input.h: functions for reading and processing an input file * containing a list of obstacles */ #ifndef INPUT_H #define INPUT_H #define TRUE 1 #define FALSE 0 #define INFINITY 1000000000.0 #define PRECISION (0.0001) /* precision for fp calculations */ /* a simple point type */ class Point { public: double x; double y; double w; /* not always used */ }; /* type for storing obstacles */ class Obstacle { public: int nPts; Point *pts; }; class WorldInfo; /* change this to allow for more obstacles */ #define MAX_OBS 10 #define MAX_INTERSECTIONS 100 /* read obstacles from input file */ void ReadInputFile( char *filename, WorldInfo *wInfo ); #endif