Beispiel #1
0
        public static Rectangle?FromPoints(IEnumerable <Point> points)
        {
            var bbb = new BoundingBoxBuilder();

            bbb.AddRange(points);
            return(bbb.ToRectangle());
        }
Beispiel #2
0
        public static Rectangle?FromRectangles(IEnumerable <Rectangle> rects)
        {
            var bbb = new BoundingBoxBuilder();

            bbb.AddRange(rects);
            return(bbb.ToRectangle());
        }