voronoiDiagram

fun List<Vector2>.voronoiDiagram(bounds: Rectangle = this.bounds): VoronoiDiagram(source)

Generates a Voronoi diagram based on the points in the list and the provided bounds.

Return

A VoronoiDiagram object representing the calculated Voronoi diagram.

Parameters

bounds

The rectangular bounds within which the Voronoi diagram is generated. Defaults to the bounds of the point list.