Table of Contents

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

inputAmplitudes double[]
frequencies double[]
seed long

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

relativeYFrequency double
amplitudes double[]
thresholds double[]
noiseX double
noiseZ double

Returns

NewNormalizedSimplexFractalNoise.ColumnNoise

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

quantityOctaves int
baseFrequency double
persistence double
seed long

Returns

NewNormalizedSimplexFractalNoise

Noise(double, double, double, double[], double[])

public double Noise(double x, double y, double z, double[] amplitudes, double[] thresholds)

Parameters

x double
y double
z double
amplitudes double[]
thresholds double[]

Returns

double

NoiseValueCurve(double)

public static double NoiseValueCurve(double value)

Parameters

value double

Returns

double

NoiseValueCurveInverse(double)

public static double NoiseValueCurveInverse(double value)

Parameters

value double

Returns

double