Пример #1
0
        public static Vector2D FindCentroid(ISpread<Blob> blobs)
        {
            var summ = new Vector2D();

            return blobs.Aggregate(summ, (current, blob) => current + blob.Position) / blobs.Count();
        }
Пример #2
0
        public static Vector2D FindCentroid(ISpread <Blob> blobs)
        {
            var summ = new Vector2D();

            return(blobs.Aggregate(summ, (current, blob) => current + blob.Position) / blobs.Count());
        }