gorhill / Javascript-Voronoi

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

Use Infinity rather than Number.{MIN_MAX}_VALUE. #13

Closed mbostock closed 11 years ago

mbostock commented 11 years ago

It’s possible I’m wrong here, but I’m guessing you didn’t mean to use Number.MIN_VALUE (the smallest positive value, 5e-324) to initialize the bounding box. Unless you meant to restrict the Voronoi tesselation to only positive coordinates?