Package com.treemap.swing.fastvoronoi
Class SimpleVoronoiDiagram
java.lang.Object
com.treemap.swing.fastvoronoi.SimpleVoronoiDiagram
- All Implemented Interfaces:
VoronoiDiagram
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleVoronoiDiagram
(com.macrofocus.geom.Shape shape, Site[] sites, double[] weights) Algorithm 3: Compute Power Diagram -
Method Summary
Modifier and TypeMethodDescriptionstatic Site[]
static double[]
com.macrofocus.geom.Shape
getClippedPolygon
(int i) com.macrofocus.geom.Point2D
com.macrofocus.geom.Shape
getPolygon
(int i) boolean
isVisibleFromBelow
(Facet face) static void
-
Field Details
-
hull
-
-
Constructor Details
-
SimpleVoronoiDiagram
Algorithm 3: Compute Power Diagram
-
-
Method Details
-
getPolygon
public com.macrofocus.geom.Shape getPolygon(int i) - Specified by:
getPolygon
in interfaceVoronoiDiagram
-
getClippedPolygon
public com.macrofocus.geom.Shape getClippedPolygon(int i) - Specified by:
getClippedPolygon
in interfaceVoronoiDiagram
-
isVisibleFromBelow
-
getDual
-
main
-
createSites
-
createWeights
public static double[] createWeights()
-