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