/// <summary> /// Initializes a new instance of the <see cref="NoiseBase" /> class. /// </summary> protected NoiseBase(int seed, float frequency, int octaves, NoiseInterpolationType noiseInterpolationType, NoiseFractalType noiseFractalType) : this(seed, frequency, octaves, 2.0f, 0.5f, noiseInterpolationType, noiseFractalType) { }
/// <inheritdoc /> public ValueNoise(int seed, float frequency, int octaves, NoiseInterpolationType noiseInterpolationType = NoiseInterpolationType.Linear, NoiseFractalType noiseFractalType = NoiseFractalType.BrownianMotion) : base( seed, frequency, octaves, noiseInterpolationType, noiseFractalType) { }
/// <inheritdoc /> public PerlinNoise(int seed, float frequency, int octaves, float lacunarity, float gain, NoiseInterpolationType noiseInterpolationType = NoiseInterpolationType.Linear, NoiseFractalType noiseFractalType = NoiseFractalType.BrownianMotion) : base( seed, frequency, octaves, lacunarity, gain, noiseInterpolationType, noiseFractalType) { }
/// <summary> /// Initializes a new instance of the <see cref="NoiseBase" /> class. /// </summary> protected NoiseBase(int seed, float frequency, int octaves, float lacunarity, float gain, NoiseInterpolationType noiseInterpolationType, NoiseFractalType noiseFractalType) { _seed = seed; _frequency = frequency; _octaves = octaves; _lacunarity = lacunarity; _gain = gain; _noiseInterpolationType = noiseInterpolationType; _noiseFractalType = noiseFractalType; CalculateFractalBounding(); }