Sharpex2D.Math.Rectangle.Rectangle C# (CSharp) Méthode

Rectangle() public méthode

Initializes a new instance of the Rectangle struct.
public Rectangle ( Vector2 a, Vector2 b ) : System
a Vector2 The first vector.
b Vector2 The second vector.
Résultat System
        public Rectangle(Vector2 a, Vector2 b)
        {
            _x = a.X;
            _y = a.Y;
            _width = b.X;
            _height = b.Y;
        }

Same methods

Rectangle::Rectangle ( float x, float y, float width, float height ) : System