getRadiusLineBoundary static method

LineString getRadiusLineBoundary(
  1. Geometry obstacles,
  2. Geometry? boundary,
  3. double tolerance
)

Computes a radius line 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 a line from the center of the circle to a point on the edge

Implementation

static LineString getRadiusLineBoundary(Geometry obstacles, Geometry? boundary, double tolerance) {
  LargestEmptyCircle lec = LargestEmptyCircle(obstacles, boundary!, tolerance);
  return lec.getRadiusLineString();
}