Javascript-Voronoi
Steven J. Fortune算法的实现,可以有效地计算Voronoi图。
核心文件
rhill-voronoi-core.js
rhill-voronoi-core.min.js
演示文件
rhill-voronoi-demo1.html
rhill-voronoi-demo2.html
rhill-voronoi-demo3.php
rhill-voronoi-demo4.html
rhill-voronoi-demo5.html
主要对象:Voronoi
var voronoi = new Voronoi(); var bbox = {xl:0,xr:800,yt:0,yb:600}; // xl是x左,xr是x右,yt是y顶,yb是y底var个站点= [{x:200,y:200},{x:50,y:250}, {x:400,y:
1