Ejemplo n.º 1
0
        public static void disjoint_mbr()
        {
            var a = new Mbr(1, 2, 3, 4);
            var b = new Mbr(2, 3, 4, 5);
            var c = new Mbr(3, 2, 5, 4);
            var d = new Mbr(3, 4, 5, 6);
            var e = new Mbr(5, 6, 7, 8);

            Assert.False(a.Disjoint(a));
            Assert.False(a.Disjoint(b));
            Assert.False(b.Disjoint(a));
            Assert.False(a.Disjoint(c));
            Assert.False(c.Disjoint(a));
            Assert.False(a.Disjoint(d));
            Assert.False(d.Disjoint(a));
            Assert.True(a.Disjoint(e));
            Assert.True(e.Disjoint(a));
        }
Ejemplo n.º 2
0
        public static void disjoint_point()
        {
            var a = new Mbr(1, 2, 3, 4);
            var b = new Mbr(2, 3, 2, 3);
            var c = new Mbr(5, 6, 7, 8);
            var p = new Point2(2, 3);

            Assert.False(a.Disjoint(p));
            Assert.False(b.Disjoint(p));
            Assert.True(c.Disjoint(p));
        }
Ejemplo n.º 3
0
        public static void disjoint_point() {
            var a = new Mbr(1, 2, 3, 4);
            var b = new Mbr(2, 3, 2, 3);
            var c = new Mbr(5, 6, 7, 8);
            var p = new Point2(2, 3);

            Assert.False(a.Disjoint(p));
            Assert.False(b.Disjoint(p));
            Assert.True(c.Disjoint(p));
        }
Ejemplo n.º 4
0
        public static void disjoint_mbr() {
            var a = new Mbr(1, 2, 3, 4);
            var b = new Mbr(2, 3, 4, 5);
            var c = new Mbr(3, 2, 5, 4);
            var d = new Mbr(3, 4, 5, 6);
            var e = new Mbr(5, 6, 7, 8);

            Assert.False(a.Disjoint(a));
            Assert.False(a.Disjoint(b));
            Assert.False(b.Disjoint(a));
            Assert.False(a.Disjoint(c));
            Assert.False(c.Disjoint(a));
            Assert.False(a.Disjoint(d));
            Assert.False(d.Disjoint(a));
            Assert.True(a.Disjoint(e));
            Assert.True(e.Disjoint(a));
        }