Sharpex2D.Math.Rectangle.Contains C# (CSharp) Method

Contains() public method

Determines whether this instance contains the specified rectangle.
public Contains ( Rectangle value ) : bool
value Rectangle The value.
return bool
        public bool Contains(Rectangle value)
        {
            return
                value.X >= X &&
                value.Y >= Y &&
                value.X + value.Width <= Right &&
                value.Y + value.Height <= Bottom;
        }

Same methods

Rectangle::Contains ( Vector2 vector ) : bool