getRadiusLine static method

LineString getRadiusLine(
  1. Geometry obstacles,
  2. double tolerance
)

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

Implementation

static LineString getRadiusLine(Geometry obstacles, double tolerance) {
  return getRadiusLineBoundary(obstacles, null, tolerance);
}