示例#1
0
        /// <summary>
        /// Gets the nodes contained into the specified bounding box
        /// </summary>
        /// <param name="bbox">Bounding box</param>
        /// <returns>Returns the nodes contained into the bounding box</returns>
        public IEnumerable <QuadTreeNode <T> > GetNodesInVolume(ref BoundingBox bbox)
        {
            Stopwatch w = Stopwatch.StartNew();

            try
            {
                return(this.Root.GetNodesInVolume(ref bbox));
            }
            finally
            {
                w.Stop();

                Counters.AddVolumeBoxTest((float)w.Elapsed.TotalSeconds);
            }
        }