VoronoiDiagram

class VoronoiDiagram(val delaunayTriangulation: DelaunayTriangulation, val bounds: Rectangle)(source)

Constructors

Link copied to clipboard
constructor(delaunayTriangulation: DelaunayTriangulation, bounds: Rectangle)

Properties

Link copied to clipboard
val bounds: Rectangle
Link copied to clipboard
val circumcenters: List<Vector2>
Link copied to clipboard
val vectors: List<Vector2>

Functions

Link copied to clipboard
fun cellArea(i: Int, contour: ShapeContour = cellPolygon(i)): Double
Link copied to clipboard
fun cellCentroid(i: Int, contour: ShapeContour = cellPolygon(i)): Vector2
Link copied to clipboard
fun cellCentroids(): List<Vector2>
Link copied to clipboard
fun cellPolygon(i: Int): ShapeContour
Link copied to clipboard
fun cellPolygons(): List<ShapeContour>
Link copied to clipboard
fun neighbors(cellIndex: Int): Sequence<Int>