getCenter static method
Computes the center point of the Largest Empty Circle interior-disjoint to a set of obstacles, with accuracy to a given tolerance distance. The obstacles may be any collection of points, lines and polygons. The center of the LEC lies within the convex hull of the obstacles.
@param obstacles a geometry representing the obstacles @param tolerance the distance tolerance for computing the center point @return the center point of the Largest Empty Circle
Implementation
static Point getCenter(Geometry obstacles, double tolerance) {
return getCenterBoundary(obstacles, null, tolerance);
}