Beispiel #1
0
 /// <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)
 {
 }
Beispiel #2
0
 /// <inheritdoc />
 public SimplexNoise(int seed,
                     float frequency,
                     int octaves,
                     NoiseFractalType noiseFractalType = NoiseFractalType.BrownianMotion)
     : base(
         seed, frequency, octaves,
         NoiseInterpolationType.Linear, noiseFractalType)
 {
 }
Beispiel #3
0
 /// <inheritdoc />
 public ValueNoise(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)
 {
 }
Beispiel #4
0
        /// <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();
        }