Example #1
0
        public void TestSearchIntersectionsTime()
        {
            Rectangle searchedArea = new Rectangle(new crawlPoint3d(0, 0, 0), new crawlPoint3d(350, 150, 0));

            for (int i = 0; i < rectangles.Length; i++)
            {
                rt.Add(rectangles[i]);
            }

            Stopwatch        timer  = Stopwatch.StartNew();
            List <Rectangle> result = rt.Intersections(searchedArea);

            timer.Stop();
            Assert.IsTrue(timer.ElapsedMilliseconds < 1);
        }