getCenterBoundary static method

Point getCenterBoundary(
  1. Geometry obstacles,
  2. Geometry? boundary,
  3. double tolerance
)

Computes the center point of the Largest Empty Circle interior-disjoint to a set of obstacles and within a polygonal boundary, 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 given boundary.

@param obstacles a geometry representing the obstacles @param boundary a polygonal geometry to contain the LEC center @param tolerance the distance tolerance for computing the center point @return the center point of the Largest Empty Circle

Implementation

static Point getCenterBoundary(Geometry obstacles, Geometry? boundary, double tolerance) {
  LargestEmptyCircle lec = new LargestEmptyCircle(obstacles, boundary!, tolerance);
  return lec.getCenterPoint();
}