NoiseHelper
Namespace: Murder.Utilities
Assembly: Murder.dll
public sealed class NoiseHelper
⭐ Constructors
public NoiseHelper()
⭐ Methods
CarmodyNoise(float, float, float, bool, bool)
public float CarmodyNoise(float x, float y, float z, bool doReseed, bool doNormalize)
Carmody's implementation of a Simplex Noise generator
Parameters
x
float
y
float
z
float
doReseed
bool
doNormalize
bool
Returns
float
GustavsonNoise(float, float, bool, bool)
public float GustavsonNoise(float xin, float yin, bool doRecalculate, bool doNormalize)
Gustavson's implementation of a 2D Simplex Noise generator
Parameters
xin
float
yin
float
doRecalculate
bool
doNormalize
bool
Returns
float
GustavsonNoise(float, float, float, bool, bool)
public float GustavsonNoise(float xin, float yin, float zin, bool doRecalculate, bool doNormalize)
Gustavson's implementation of a 3D Simplex Noise generator
Parameters
xin
float
yin
float
zin
float
doRecalculate
bool
doNormalize
bool
Returns
float
Normalize(float, float, float)
public float Normalize(float value, float min, float max)
Normalizes a float to the range of 0 to 1
Parameters
value
float
min
float
max
float
Returns
float
NormalizeSigned(float, float, float)
public float NormalizeSigned(float value, float min, float max)
Normalizes a float to the range of -1 to 1
Parameters
value
float
min
float
max
float
Returns
float
Simple01(float, float)
public float Simple01(float point, float frequency)
Parameters
point
float
frequency
float
Returns
float
Simple2D(float, float, float)
public float Simple2D(float x, float y, float frequency)
Parameters
x
float
y
float
frequency
float
Returns
float
LCG(long, long, long, long)
public long LCG(long seed, long a, long c, long m)
Parameters
seed
long
a
long
c
long
m
long
Returns
long
⚡