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

FromLTRB() public static method

FromLTRB Shared Method
Produces a Rectangle structure from left, top, right, and bottom coordinates.
public static FromLTRB ( int left, int top, int right, int bottom ) : Rectangle
left int
top int
right int
bottom int
return Rectangle
        public static Rectangle FromLTRB(int left, int top,
                          int right, int bottom)
        {
            return new Rectangle(left, top, right - left,
                          bottom - top);
        }