Class LloydRelaxation
java.lang.Object
davidmarino.service.mapservice.LloydRelaxation
Class
LloydRelaxation
determines the centroid of a polygon and returns that point.
For more information about this algorithm read https://en.wikipedia.org/wiki/Lloyd's_algorithm-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyLloydRelaxation
(ArrayList<Point> points) Applies Lloyd Relaxation to a set of points.
-
Constructor Details
-
LloydRelaxation
public LloydRelaxation()
-
-
Method Details
-
applyLloydRelaxation
-