コード例 #1
0
        /// <summary>
        /// linear-time computation using the move-to-front heuristic by Welzl
        /// </summary>
        /// <param name="points">points that must be enclosed</param>
        /// <returns>Smallest disc that encloses all the points</returns>
        public static Disc LinearComputation(Point[] points)
        {
            MoveToFront m = new MoveToFront(points);

            return(m.disc);
        }
コード例 #2
0
 /// <summary>
 /// linear-time computation using the move-to-front heuristic by Welzl
 /// </summary>
 /// <param name="points">points that must be enclosed</param>
 /// <returns>Smallest disc that encloses all the points</returns>
 public static Disc LinearComputation(Point[] points)
 {
     MoveToFront m = new MoveToFront(points);
     return m.disc;
 }