public static class Noise.Basic1D extends java.lang.Object implements Noise.Noise1D
getNoiseWithSeed(double, long) instead of using getNoise(double),
it will use a small extra step to adjust the spacing of peaks and valleys based on the seed, so getNoiseWithSeed
is slower than getNoise. If you use any Noise classes like Noise.Layered1D, they should use a seed anyway
because different octaves won't have different enough shapes otherwise.| Modifier and Type | Field and Description |
|---|---|
double |
alter1 |
double |
alter2 |
double |
alter3 |
double |
alter4 |
static Noise.Basic1D |
instance |
long |
lastSeed |
| Modifier and Type | Method and Description |
|---|---|
static double |
cubicSway(double value) |
double |
getNoise(double x) |
double |
getNoiseWithSeed(double x,
long seed) |
static double |
noise(double x,
long seed) |
public static final Noise.Basic1D instance
public double alter1
public double alter2
public double alter3
public double alter4
public long lastSeed
public double getNoise(double x)
getNoise in interface Noise.Noise1Dpublic double getNoiseWithSeed(double x,
long seed)
getNoiseWithSeed in interface Noise.Noise1Dpublic static double cubicSway(double value)
public static double noise(double x,
long seed)
Copyright © Eben Howard 2012–2022. All rights reserved.