Class NewNormalizedSimplexFractalNoise
- Namespace
- Vintagestory.API.MathTools
- Assembly
- VintagestoryAPI.dll
public class NewNormalizedSimplexFractalNoise
- Inheritance
-
NewNormalizedSimplexFractalNoise
- Inherited Members
- Extension Methods
Constructors
NewNormalizedSimplexFractalNoise(double[], double[], long)
public NewNormalizedSimplexFractalNoise(double[] inputAmplitudes, double[] frequencies, long seed)
Parameters
Fields
frequencies
public double[] frequencies
Field Value
- double[]
inputAmplitudes
public double[] inputAmplitudes
Field Value
- double[]
octaveSeeds
public long[] octaveSeeds
Field Value
- long[]
scaledAmplitudes2D
public double[] scaledAmplitudes2D
Field Value
- double[]
scaledAmplitudes3D
public double[] scaledAmplitudes3D
Field Value
- double[]
Methods
ForColumn(double, double[], double[], double, double)
public NewNormalizedSimplexFractalNoise.ColumnNoise ForColumn(double relativeYFrequency, double[] amplitudes, double[] thresholds, double noiseX, double noiseZ)
Parameters
Returns
FromDefaultOctaves(int, double, double, long)
Generates the octaves and frequencies using following formulas freq[i] = baseFrequency * 2^i amp[i] = persistence^i
public static NewNormalizedSimplexFractalNoise FromDefaultOctaves(int quantityOctaves, double baseFrequency, double persistence, long seed)
Parameters
Returns
Noise(double, double, double, double[], double[])
public double Noise(double x, double y, double z, double[] amplitudes, double[] thresholds)
Parameters
Returns
NoiseValueCurve(double)
public static double NoiseValueCurve(double value)
Parameters
value
double
Returns
NoiseValueCurveInverse(double)
public static double NoiseValueCurveInverse(double value)
Parameters
value
double