Windows.Foundation.Rect.IntersectsWith C# (CSharp) Method

IntersectsWith() private method

private IntersectsWith ( Rect rect ) : bool
rect Rect
return bool
        internal bool IntersectsWith(Rect rect)
        {
            if (Width < 0 || rect.Width < 0)
            {
                return false;
            }

            return (rect.X <= X + Width) &&
                   (rect.X + rect.Width >= X) &&
                   (rect.Y <= Y + Height) &&
                   (rect.Y + rect.Height >= Y);
        }