Пример #1
0
        public static Rect MergeSignificantIntersections( Rect rect, List<Rect> otherRects )
        {
            foreach ( var otherRect in otherRects )
             {
            if ( rect.SignificantlyIntersects( otherRect ) )
            {
               rect.Union( otherRect );
            }
             }

             return rect;
        }