orx
Toggle table of contents
0.5.0-dev.28+293aff4
common
Target filter
common
Switch theme
Search in API
Skip to content
orx
orx-triangulation
/
org.openrndr.extra.triangulation
/
VoronoiDiagram
Voronoi
Diagram
class
VoronoiDiagram
(
val
delaunayTriangulation
:
DelaunayTriangulation
,
val
bounds
:
Rectangle
)
(
source
)
Members
Constructors
Voronoi
Diagram
Link copied to clipboard
constructor
(
delaunayTriangulation
:
DelaunayTriangulation
,
bounds
:
Rectangle
)
Properties
bounds
Link copied to clipboard
val
bounds
:
Rectangle
circumcenters
Link copied to clipboard
val
circumcenters
:
List
<
Vector2
>
delaunay
Triangulation
Link copied to clipboard
val
delaunayTriangulation
:
DelaunayTriangulation
vectors
Link copied to clipboard
val
vectors
:
List
<
Vector2
>
Functions
cell
Area
Link copied to clipboard
fun
cellArea
(
i
:
Int
,
contour
:
ShapeContour
=
cellPolygon(i)
)
:
Double
cell
Centroid
Link copied to clipboard
fun
cellCentroid
(
i
:
Int
,
contour
:
ShapeContour
=
cellPolygon(i)
)
:
Vector2
cell
Centroids
Link copied to clipboard
fun
cellCentroids
(
)
:
List
<
Vector2
>
cell
Polygon
Link copied to clipboard
fun
cellPolygon
(
i
:
Int
)
:
ShapeContour
cell
Polygons
Link copied to clipboard
fun
cellPolygons
(
)
:
List
<
ShapeContour
>
neighbors
Link copied to clipboard
fun
neighbors
(
cellIndex
:
Int
)
:
Sequence
<
Int
>