Beispiel #1
0
        /// <summary>
        /// Computes a radius line of the Largest Empty Circle
        /// within a set of obstacles, up to a given distance tolerance.
        /// </summary>
        /// <param name="obstacles">A geometry representing the obstacles (points and lines)</param>
        /// <param name="tolerance">The distance tolerance for computing the center point</param>
        /// <returns>A line from the center of the circle to a point on the edge</returns>
        public static LineString GetRadiusLine(Geometry obstacles, double tolerance)
        {
            var lec = new LargestEmptyCircle(obstacles, tolerance);

            return(lec.GetRadiusLine());
        }
Beispiel #2
0
        /// <summary>
        /// Computes the center point of the Largest Empty Circle
        /// within a set of obstacles, up to a given tolerance distance.
        /// </summary>
        /// <param name="obstacles">A geometry representing the obstacles (points and lines)</param>
        /// <param name="tolerance">The distance tolerance for computing the center point</param>
        /// <returns>The center point of the Largest Empty Circle</returns>
        public static Point GetCenter(Geometry obstacles, double tolerance)
        {
            var lec = new LargestEmptyCircle(obstacles, tolerance);

            return(lec.GetCenter());
        }