Nez.Portable/Math/RectangleF.cs
/// <summary>
/// Creates a new <see cref="RectangleF"/> that completely contains two other rectangles.
/// </summary>
/// <param name="value1">The first <see cref="RectangleF"/>.</param>
/// <param name="value2">The second <see cref="RectangleF"/>.</param>
/// <returns>The union of the two rectangles.</returns>
Creates a new  that completely contains two other rectangles.
Creates a new that completely contains two other rectangles .
public static RectangleF union(RectangleF value1, RectangleF value2)
        {
            var x = Math.Min(value1.x, value2.x);
            var y = Math.Min(value1.y, value2.y);
            return new RectangleF(
                x,
                y,
                Math.Max(value1.right, value2.right) - x,
                Math.Max(value1.bottom, value2.bottom) - y);
        }
public static RectangleF union ( RectangleF value1 , RectangleF value2 ) { var x = Math . Min ( value1 . x , value2 . x ) ; var y = Math . Min ( value1 . y , value2 . y ) ; return new RectangleF ( x , y , Math . Max ( value1 . right , value2 . right ) - x , Math . Max ( value1 . bottom , value2 . bottom ) - y ) ; }
Creates a new  that completely contains two other rectangles.
Creates a new that completely contains two other rectangles .
The union of the two rectangles.
The union of the two rectangles .
value1
RectangleF
The first .
The first .
value2
RectangleF
The second .
The second .