public FractalNoise(float inH, float inLacunarity, float inOctaves, Perlin noise) { this.m_Lacunarity = inLacunarity; this.m_Octaves = inOctaves; this.m_IntOctaves = (int)inOctaves; this.m_Exponent = new float[this.m_IntOctaves + 1]; float num = 1f; for (int i = 0; i < this.m_IntOctaves + 1; i++) { this.m_Exponent[i] = (float)Math.Pow((double)this.m_Lacunarity, (double)(-(double)inH)); num *= this.m_Lacunarity; } if (noise == null) { this.m_Noise = new Perlin(); } else { this.m_Noise = noise; } }