public class MasonNoise extends java.lang.Object implements Noise.Noise2D, Noise.Noise3D, Noise.Noise4D, Noise.Noise6D
FastNoise
for 2D and 3D noise,
WhirlingNoise
for 4D noise, and SeededNoise
for 6D noise. It uses its own, possibly sub-par
implementation for addNoiseField(float[][], float, float, float, float, long, float, float)
and
addNoiseField(float[][][], float, float, float, float, float, float, long, float, float)
.
Modifier and Type | Field and Description |
---|---|
protected long |
defaultSeed |
static MasonNoise |
instance |
Constructor and Description |
---|
MasonNoise() |
MasonNoise(long seed) |
Modifier and Type | Method and Description |
---|---|
static void |
addNoiseField(float[][][] target,
float startX,
float startY,
float startZ,
float endX,
float endY,
float endZ,
long seed,
float multiplier,
float shrink) |
static void |
addNoiseField(float[][] target,
float startX,
float startY,
float endX,
float endY,
long seed,
float multiplier,
float shrink) |
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 |
getNoise(double x,
double y,
double z,
double w,
double u,
double v) |
double |
getNoiseWithSeed(double x,
double y,
double z,
double w,
double u,
double v,
long seed) |
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) |
static double |
noise(double x,
double y,
double z,
double w,
double u,
double v,
long seed)
|
static double |
noise(double x,
double y,
double z,
double w,
long seed)
|
static double |
noise(double x,
double y,
double z,
long seed)
Delegates to
FastNoise.getNoiseWithSeed(double, double, double, long) . |
static double |
noise(double x,
double y,
long seed)
Delegates to
FastNoise.getNoiseWithSeed(double, double, long) . |
static int |
randomInt(long state) |
static int |
randomInt(long state,
long jump) |
static float |
randomize(long state,
long jump) |
protected final long defaultSeed
public static final MasonNoise instance
public double getNoise(double x, double y)
getNoise
in interface Noise.Noise2D
public double getNoise(double x, double y, double z)
getNoise
in interface Noise.Noise3D
public double getNoise(double x, double y, double z, double w)
getNoise
in interface Noise.Noise4D
public double getNoise(double x, double y, double z, double w, double u, double v)
getNoise
in interface Noise.Noise6D
public double getNoiseWithSeed(double x, double y, long seed)
getNoiseWithSeed
in interface Noise.Noise2D
public double getNoiseWithSeed(double x, double y, double z, long seed)
getNoiseWithSeed
in interface Noise.Noise3D
public double getNoiseWithSeed(double x, double y, double z, double w, long seed)
getNoiseWithSeed
in interface Noise.Noise4D
public double getNoiseWithSeed(double x, double y, double z, double w, double u, double v, long seed)
getNoiseWithSeed
in interface Noise.Noise6D
public static double noise(double x, double y, long seed)
FastNoise.getNoiseWithSeed(double, double, long)
.
x
- X inputy
- Y inputseed
- any long; will be used to completely alter the noisepublic static float randomize(long state, long jump)
public static int randomInt(long state, long jump)
public static int randomInt(long state)
public static void addNoiseField(float[][] target, float startX, float startY, float endX, float endY, long seed, float multiplier, float shrink)
public static void addNoiseField(float[][][] target, float startX, float startY, float startZ, float endX, float endY, float endZ, long seed, float multiplier, float shrink)
public static double noise(double x, double y, double z, long seed)
FastNoise.getNoiseWithSeed(double, double, double, long)
.
x
- X inputy
- Y inputz
- Z inputseed
- any long; will be used to completely alter the noisepublic static double noise(double x, double y, double z, double w, long seed)
x
- X inputy
- Y inputz
- Z inputw
- W input (fourth-dimensional)seed
- any long; will be used to completely alter the noisepublic static double noise(double x, double y, double z, double w, double u, double v, long seed)
x
- X inputy
- Y inputz
- Z inputw
- W input (fourth-dimensional)u
- U input (fifth-dimensional)v
- V input (sixth-dimensional)seed
- any long; will be used to completely alter the noiseCopyright © Eben Howard 2012–2022. All rights reserved.