Example #1
0
        public void TestIntersects()
        {
            var s1 = new QRectF();

            s1.X      = 0;
            s1.Y      = 0;
            s1.Width  = 500;
            s1.Height = 600;

            var s2 = new QRectF();

            s2.X      = 400;
            s2.Y      = 500;
            s2.Width  = 500;
            s2.Height = 600;

            var inter = s1.Intersects(s2);

            Assert.IsTrue(inter);
        }
Example #2
0
        public void TestIntersects()
        {
            var s1 = new QRectF();
            s1.X = 0;
            s1.Y = 0;
            s1.Width = 500;
            s1.Height = 600;

            var s2 = new QRectF();
            s2.X = 400;
            s2.Y = 500;
            s2.Width = 500;
            s2.Height = 600;

            var inter = s1.Intersects(s2);

            Assert.IsTrue(inter);
        }