/// <summary>
 /// calculates the convex hull of the given set of points
 /// </summary>
 /// <param name="pointsOfTheBody">Point of the convex hull.</param>
 /// <returns>The list of extreme points of the hull boundaries in the clockwise order</returns>
 public static IEnumerable<Point> CalculateConvexHull(IEnumerable<Point> pointsOfTheBody) {
     var convexHull = new ConvexHull(pointsOfTheBody);
     return convexHull.Calculate();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// calculates the convex hull of the given set of points
        /// </summary>
        /// <param name="pointsOfTheBody">Point of the convex hull.</param>
        /// <returns>The list of extreme points of the hull boundaries in the clockwise order</returns>
        public static IEnumerable <Point> CalculateConvexHull(IEnumerable <Point> pointsOfTheBody)
        {
            var convexHull = new ConvexHull(pointsOfTheBody);

            return(convexHull.Calculate());
        }