Category5.Rectangle2D.IsWithin C# (CSharp) Method

IsWithin() public method

public IsWithin ( Rectangle2D InnerRect ) : bool
InnerRect Rectangle2D
return bool
        public bool IsWithin(Rectangle2D InnerRect)
        {
            bool inner = false;
            if (this.X < InnerRect.X && this.Y < InnerRect.Y && this.X + this.Width > InnerRect.X + InnerRect.Width && this.Y + this.Height > InnerRect.Y + InnerRect.Height)
            {
                inner = true;
            }
            return inner;
        }