OpenTK.Graphics.Rectangle.Union C# (CSharp) Method

Union() public static method

Union Shared Method
Produces a new Rectangle from the union of 2 existing Rectangles.
public static Union ( Rectangle a, Rectangle b ) : Rectangle
a Rectangle
b Rectangle
return Rectangle
        public static Rectangle Union(Rectangle a, Rectangle b)
        {
            return FromLTRB(Math.Min(a.Left, b.Left),
                     Math.Min(a.Top, b.Top),
                     Math.Max(a.Right, b.Right),
                     Math.Max(a.Bottom, b.Bottom));
        }