OpenTK.Box2.Box2 C# (CSharp) Method

Box2() public method

Constructs a new Box2 with the specified dimensions.
public Box2 ( System.Vector2 topLeft, System.Vector2 bottomRight ) : System
topLeft System.Vector2 AnOpenTK.Vector2 describing the top-left corner of the Box2.
bottomRight System.Vector2 An OpenTK.Vector2 describing the bottom-right corner of the Box2.
return System
        public Box2(Vector2 topLeft, Vector2 bottomRight)
        {
            Left = topLeft.X;
            Top = topLeft.Y;
            Right = topLeft.X;
            Bottom = topLeft.Y;
        }

Same methods

Box2::Box2 ( float left, float top, float right, float bottom ) : System