OpenMetaverse.TerrainCompressor.SetupCosines16 C# (CSharp) Method

SetupCosines16() private static method

private static SetupCosines16 ( ) : void
return void
        private static void SetupCosines16()
        {
            const float hposz = (float)Math.PI * 0.5f / 16.0f;

            for (int u = 0; u < 16; u++)
            {
                for (int n = 0; n < 16; n++)
                {
                    CosineTable16[u * 16 + n] = (float)Math.Cos((2.0f * (float)n + 1.0f) * (float)u * hposz);
                }
            }
        }