public BillowModule4D(INoiseCore4D noiseCore, double frequency, double amplitude, int octaves, double persistence = 0.5, double lacunarity = 2) : base(frequency, amplitude, octaves, persistence, lacunarity) { if (noiseCore == null) { throw new ArgumentNullException("Noise core is null"); } _noise = noiseCore; }
public RidgedModule4D(INoiseCore4D noiseCore, double frequency, double amplitude, int octaves, double persistence = 0.5, double lacunarity = 2) : base(frequency, amplitude, octaves, persistence, lacunarity) { if (noiseCore == null) { throw new ArgumentNullException("Noise core is null"); } _noise = noiseCore; _spectralWeight = CalculateSpectralWeights(); }