Core2D.Math.Rect2.IntersectsWith C# (CSharp) Method

IntersectsWith() public method

public IntersectsWith ( Rect2 rect ) : bool
rect Rect2
return bool
        public bool IntersectsWith(Rect2 rect)
        {
            return (rect.Left <= Right)
                && (rect.Right >= Left)
                && (rect.Top <= Bottom)
                && (rect.Bottom >= Top);
        }