Пример #1
0
        public static PointF GetCentroid(PointF[] points)
        {
            float areaDummy;

            return(PolygonF.GetCentroid(points, out areaDummy));
        }
Пример #2
0
 public static Point GetCentroid(Point[] points)
 {
     return(Point.Truncate(PolygonF.GetCentroid(points.Select(p => new PointF((float)p.X, (float)p.Y)).ToArray())));
 }