Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: VoronoiDiagram GenerateVoronoiDiagram(PointD[], double, double, VoronoiDiagramFlags)

Declaration

public static VoronoiDiagram GenerateVoronoiDiagram(
    PointD[] sites,
    double width,
    double height,
    VoronoiDiagramFlags flags = 0x0
)

Summary

Generates a Voronoi diagram from a set of input points.

Parameters

PointD[]sites Input points (sites) to generate diagram from.
doublewidth Width of the viewport. The origin of the viewport is assumed to be at (0, 0).
doubleheight Height of the viewport. The origin of the viewport is assumed to be at (0, 0).
VoronoiDiagramFlagsflags Set of VoronoiDiagramFlags values that specifies additional options.

Returns

A list of line segments describing the Voronoi diagram.