@Beta public class HashedValueNoise extends java.lang.Object implements Noise.Noise1D, Noise.Noise2D, Noise.Noise3D, Noise.Noise4D
ValueNoise
, but allows using an IPointHash
to configure how points
are given values (usually to add a glitchy effect). This is almost certainly slower than ValueNoise, but should still
be faster than the Cubic mode in FastNoise
, which was (prior to this class being added) the only reasonable
way to show the glitch effects of things like FlawedPointHash.CubeHash
.
ClassicNoise
, but is structured similarly in many ways, and won't alter values obtained
from a point hash.Modifier and Type | Field and Description |
---|---|
IPointHash |
hash |
static HashedValueNoise |
instance |
Constructor and Description |
---|
HashedValueNoise() |
HashedValueNoise(int seed) |
HashedValueNoise(IPointHash hash) |
HashedValueNoise(long seed) |
Modifier and Type | Method and Description |
---|---|
double |
getNoise(double x) |
double |
getNoise(double x,
double y) |
double |
getNoise(double x,
double y,
double z) |
double |
getNoise(double x,
double y,
double z,
double w) |
double |
getNoiseWithSeed(double x,
double y,
double z,
double w,
long seed) |
double |
getNoiseWithSeed(double x,
double y,
double z,
long seed) |
double |
getNoiseWithSeed(double x,
double y,
long seed) |
double |
getNoiseWithSeed(double x,
long seed) |
public static final HashedValueNoise instance
public IPointHash hash
public HashedValueNoise()
public HashedValueNoise(int seed)
public HashedValueNoise(long seed)
public HashedValueNoise(IPointHash hash)
public double getNoise(double x)
getNoise
in interface Noise.Noise1D
public double getNoiseWithSeed(double x, long seed)
getNoiseWithSeed
in interface Noise.Noise1D
public double getNoise(double x, double y)
getNoise
in interface Noise.Noise2D
public double getNoiseWithSeed(double x, double y, long seed)
getNoiseWithSeed
in interface Noise.Noise2D
public double getNoise(double x, double y, double z)
getNoise
in interface Noise.Noise3D
public double getNoiseWithSeed(double x, double y, double z, long seed)
getNoiseWithSeed
in interface Noise.Noise3D
public double getNoise(double x, double y, double z, double w)
getNoise
in interface Noise.Noise4D
public double getNoiseWithSeed(double x, double y, double z, double w, long seed)
getNoiseWithSeed
in interface Noise.Noise4D
Copyright © Eben Howard 2012–2022. All rights reserved.