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

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

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