/// <summary> /// Computes a radius line of the Maximum Inscribed Circle /// of a polygonal geometry, up to a given tolerance distance. /// </summary> /// <param name="polygonal">A polygonal geometry</param> /// <param name="tolerance">The distance tolerance for computing the center point</param> /// <returns>A line from the center to a point on the circle</returns> public static LineString GetRadiusLine(Geometry polygonal, double tolerance) { var mic = new MaximumInscribedCircle(polygonal, tolerance); return(mic.GetRadiusLine()); }
/// <summary> /// Computes the center point of the Maximum Inscribed Circle /// of a polygonal geometry, up to a given tolerance distance. /// </summary> /// <param name="polygonal">A polygonal geometry</param> /// <param name="tolerance">The distance tolerance for computing the center point</param> /// <returns>The center point of the maximum inscribed circle</returns> public static Point GetCenter(Geometry polygonal, double tolerance) { var mic = new MaximumInscribedCircle(polygonal, tolerance); return(mic.GetCenter()); }