Example #1
0
        public void IntersectsWith()
        {
            var rect1 = new Rect2d(0, 0, 100, 100);
            var rect2 = new Rect2d(0, 0, 100, 100);

            Assert.True(rect1.IntersectsWith(rect2));

            rect2 = new Rect2d(50, 0, 100, 100);
            Assert.True(rect1.IntersectsWith(rect2));

            rect2 = new Rect2d(100, 0, 100, 100);
            Assert.False(rect1.IntersectsWith(rect2));
        }