public void IntersectsWithRect() { Assert.IsTrue(rectD.IntersectsWith(rectD)); Assert.IsTrue(rectD.IntersectsWith(new RectD(2, 3, 2, 3))); Assert.IsTrue(rectD.IntersectsWith(new RectD(0, 1, 4, 5))); Assert.IsFalse(rectD.IntersectsWith(new RectD(10, 3, 4, 5))); Assert.IsTrue(rectF.IntersectsWith(rectF)); Assert.IsTrue(rectF.IntersectsWith(new RectF(2, 3, 2, 3))); Assert.IsTrue(rectF.IntersectsWith(new RectF(0, 1, 4, 5))); Assert.IsFalse(rectF.IntersectsWith(new RectF(10, 3, 4, 5))); Assert.IsTrue(rectI.IntersectsWith(rectI)); Assert.IsTrue(rectI.IntersectsWith(new RectI(2, 3, 2, 3))); Assert.IsTrue(rectI.IntersectsWith(new RectI(0, 1, 4, 5))); Assert.IsFalse(rectI.IntersectsWith(new RectI(10, 3, 4, 5))); }