Canguro.Model.Section.FrameSection.calculateBB C# (CSharp) Метод

calculateBB() защищенный Метод

protected calculateBB ( ) : void
Результат void
        protected void calculateBB()
        {
            boundingBox[0] = boundingBox[1] = Vector2.Empty;

            short[][] contourIndices = ContourIndices;
            if (contourIndices != null)
            {
                short[] indices = contourIndices[0];
                //blCorner = trCorner = contour[0][indices[0]];
                boundingBox[0] = boundingBox[1] = contour[0][indices[0]];

                // Bounding Box
                for (int i = 0; i < indices.Length - 1; i++)
                {
                    boundingBox[0] = Microsoft.DirectX.Vector2.Minimize(contour[0][indices[i]], boundingBox[0]);
                    boundingBox[1] = Microsoft.DirectX.Vector2.Maximize(contour[0][indices[i]], boundingBox[1]);
                }
            }
        }