gorhill / Javascript-Voronoi

A Javascript implementation of Fortune's algorithm to compute Voronoi cells
http://www.raymondhill.net/voronoi/
Other
1.03k stars 166 forks source link

added computeAreas to get calculate the area of each cell #3

Open morgajel opened 11 years ago

morgajel commented 11 years ago

Added a method that should properly calculate the area of each cell using http://www.wikihow.com/Calculate-the-Area-of-a-Polygon

You may want to check my implementation for correctness, provided you even want it :)