BEPUphysics.DataStructures.MeshBoundingBoxTree.Analyze C# (CSharp) Method

Analyze() private method

private Analyze ( List &depths, int &minDepth, int &maxDepth, int &nodeCount ) : void
depths List
minDepth int
maxDepth int
nodeCount int
return void
        void Analyze(out List<int> depths, out int minDepth, out int maxDepth, out int nodeCount)
        {
            depths = new List<int>();
            nodeCount = 0;
            root.Analyze(depths, 0, ref nodeCount);

            maxDepth = 0;
            minDepth = int.MaxValue;
            for (int i = 0; i < depths.Count; i++)
            {
                if (depths[i] > maxDepth)
                    maxDepth = depths[i];
                if (depths[i] < minDepth)
                    minDepth = depths[i];
            }
        }