source code to compute the visibility polygon of a point in a polygon.

源代码在线查看: input.h

软件大小: 35 K
上传用户: newyearday
关键词: polygon visibility compute source
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* 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																			

相关资源