示例#1
0
        public void Collides_Returns_False_If_Nothing_Found()
        {
            var tree = new RTree <int>(4);

            tree.Load(_data);

            Assert.IsFalse(tree.Collides(new BoundingBox(200, 200, 210, 210)));
        }
示例#2
0
        public void Collides_When_Search_Finds_Matching_Points()
        {
            var tree = new RTree <int>(4);

            tree.Load(_data);

            Assert.IsTrue(tree.Collides(new BoundingBox(40, 20, 80, 70)));
        }