A Steven Fortune's algorithm to compute Voronoi diagram from given set of Points and a bounding box.

The implementation is a port from JS library: https://github.com/gorhill/Javascript-Voronoi

Constructor

@:value({ epsilon : 1e-9 })new(epsilon:Float = 1e-9)

Create a new Voronoi algorithm calculator.

Methods

compute(points:Array<Point>, bbox:Bounds):Diagram

Compute the Voronoi diagram based on given list of points and bounding box.

reset():Void

Clean up the calculator from previous operation, and prepare for a new one.

Not required to be called manually, as it's invoked by Voronoi.compute.