public PerlinNoise( Random rand, int octaves ) { this.octaves = octaves; noiseLayers = new ImprovedNoise[octaves]; for( int i = 0; i < octaves; i++ ) { noiseLayers[i] = new ImprovedNoise( rand ); } }
public PerlinNoise([NotNull] Random rand, int octaves) { if (rand == null) throw new ArgumentNullException("rand"); this.octaves = octaves; noiseLayers = new ImprovedNoise[octaves]; for (int i = 0; i < octaves; i++) { noiseLayers[i] = new ImprovedNoise(rand); } }
public PerlinNoise(Random rand, int octaves) { this.octaves = octaves; noiseLayers = new ImprovedNoise[octaves]; for (int i = 0; i < octaves; i++) { noiseLayers[i] = new ImprovedNoise(rand); } }
public PerlinNoise([NotNull] Random rand, int octaves) { if (rand == null) { throw new ArgumentNullException("rand"); } this.octaves = octaves; noiseLayers = new ImprovedNoise[octaves]; for (int i = 0; i < octaves; i++) { noiseLayers[i] = new ImprovedNoise(rand); } }