模拟器提供了一个简单易用的平台

源代码在线查看: gb_plane.ch

软件大小: 1340 K
上传用户: zyhunicom
关键词: 模拟
下载地址: 免注册下载 普通下载 VIP

相关代码

				@x l.20				extern Graph *plane();				extern Graph *plane_miles();				extern void delaunay();				@y				extern Graph *plane(unsigned long,unsigned long,unsigned long,@|				  unsigned long,unsigned long,long);				extern Graph *plane_miles(unsigned long,long,long,long,@|				  unsigned long,unsigned long,long);				extern void delaunay(Graph *,void (*)(Vertex *,Vertex *));				@z								@x l.92				Graph *plane(n,x_range,y_range,extend,prob,seed)				  unsigned long n; /* number of vertices desired */				  unsigned long x_range,y_range; /* upper bounds on rectangular coordinates */				  unsigned long extend; /* should a point at infinity be included? */				  unsigned long prob; /* probability of rejecting a Delaunay edge */				  long seed; /* random number seed */				@y				Graph *plane(@t\1\1@>				  unsigned long n,				    /* number of vertices desired */				  unsigned long x_range,unsigned long y_range,				    /* upper bounds on rectangular coordinates */				  unsigned long extend,				    /* should a point at infinity be included? */				  unsigned long prob,				    /* probability of rejecting a Delaunay edge */				  long seed@t\2\2@>)				    /* random number seed */				@z								@x l.226				void delaunay(g,f)				  Graph *g; /* vertices in the plane */				  void @[@] (*f)(); /* procedure that absorbs the triangulated edges */				@y				void delaunay(@t\1\1@>				  Graph *g, /* vertices in the plane */				  void (*f)(Vertex *,Vertex *)@t\2\2@>)				    /* procedure that absorbs the triangulated edges */				@z								@x l.252				static void new_euclid_edge(u,v)				  Vertex *u,*v;				@y				static void new_euclid_edge(Vertex *u,Vertex *v)				@z								@x l.283				static long int_sqrt(x)				  long x;				@y				static long int_sqrt(long x)				@z								@x l.322				static long sign_test(x1,x2,x3,y1,y2,y3)				  long x1,x2,x3,y1,y2,y3;				@y				static long sign_test(long x1,long x2,long x3,long y1,long y2,long y3)				@z								@x l.431				static long ccw(u,v,w)				  Vertex *u,*v,*w;				@y				static long ccw(Vertex *u,Vertex *v,Vertex *w)				@z								@x l.474				static long incircle(t,u,v,w)				  Vertex *t,*u,*v,*w;				@y				static long incircle(Vertex *t,Vertex *u,Vertex *v,Vertex *w)				@z								@x l.542				static long ff(t,u,v,w)				  Vertex *t,*u,*v,*w;				@y				static long ff(Vertex *t,Vertex *u,Vertex *v,Vertex *w)				@z								@x l.550				static long gg(t,u,v,w)				  Vertex *t,*u,*v,*w;				@y				static long gg(Vertex *t,Vertex *u,Vertex *v,Vertex *w)				@z								@x l.558				static long hh(t,u,v,w)				  Vertex *t,*u,*v,*w;				@y				static long hh(Vertex *t,Vertex *u,Vertex *v,Vertex *w)				@z								@x l.563				static long jj(t,u,v,w)				  Vertex *t,*u,*v,*w;				@y				static long jj(Vertex *t,Vertex *u,Vertex *v,Vertex *w)				@z								@x l.882				static void flip(c,d,e,t,tp,tpp,p,xp,xpp)				  arc *c,*d,*e;				  Vertex *t,*tp,*tpp,*p;				  node *xp,*xpp;				@y				static void flip(arc *c,arc *d,arc *e,@|				  Vertex *t,Vertex *tp,Vertex *tpp,Vertex *p,@|				  node *xp,node *xpp)				@z								@x l.931				Graph *plane_miles(n,north_weight,west_weight,pop_weight,extend,prob,seed)				  unsigned long n; /* number of vertices desired */				  long north_weight; /* coefficient of latitude in the weight function */				  long west_weight; /* coefficient of longitude in the weight function */				  long pop_weight; /* coefficient of population in the weight function */				  unsigned long extend; /* should a point at infinity be included? */				  unsigned long prob; /* probability of rejecting a Delaunay edge */				  long seed; /* random number seed */				@y				Graph *plane_miles(@t\1\1@>				  unsigned long n,				    /* number of vertices desired */				  long north_weight,				    /* coefficient of latitude in the weight function */				  long west_weight,				    /* coefficient of longitude in the weight function */				  long pop_weight,				    /* coefficient of population in the weight function */				  unsigned long extend,				    /* should a point at infinity be included? */				  unsigned long prob,				    /* probability of rejecting a Delaunay edge */				  long seed@t\2\2@>)				    /* random number seed */				@z								@x l.982				static void new_mile_edge(u,v)				  Vertex *u,*v;				@y				static void new_mile_edge(Vertex *u,Vertex *v)				@z							

相关资源