@Beta public class PyrlinNoise extends ClassicNoise implements Noise.Noise2D, Noise.Noise3D, Noise.Noise4D, Noise.Noise5D, Noise.Noise6D
ClassicNoise; this is almost entirely meant as an optimization for Classic
Perlin noise. Instead of hashing all 2-to-the-D points, where D is the dimensionality, this hashes half of those
points (like the square base of a pyramid), gets gradient vectors as ClassicNoise does, and interpolates that with
the gradient vector of one point in the center of the cube Classic noise would have used (like the cap or point of a
pyramid).
valueNoise(long, double, double) methods in this class return results in the range of 0.0 to 1.0,
while the getNoise(double, double) and getNoiseWithSeed(double, double, long) methods use the Noise
class default range of -1.0 to 1.0.| Modifier and Type | Field and Description |
|---|---|
static PyrlinNoise |
instance |
seed| Constructor and Description |
|---|
PyrlinNoise() |
PyrlinNoise(long seed) |
| Modifier and Type | Method and Description |
|---|---|
double |
getNoise(double x,
double y) |
double |
getNoiseWithSeed(double x,
double y,
long seed) |
static double |
valueNoise(int seed,
double x,
double y,
double z) |
static double |
valueNoise(int seed,
double x,
double y,
double z,
double w) |
static double |
valueNoise(int seed,
double x,
double y,
double z,
double w,
double u) |
static double |
valueNoise(int seed,
double x,
double y,
double z,
double w,
double u,
double v) |
static double |
valueNoise(long seed,
double x,
double y) |
getNoise, getNoise, getNoise, getNoise, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, getNoiseWithSeed, gradCoord2D, gradCoord3D, gradCoord4D, gradCoord5D, gradCoord6Dclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNoise, getNoiseWithSeedgetNoise, getNoiseWithSeedgetNoise, getNoiseWithSeedgetNoise, getNoiseWithSeedpublic static final PyrlinNoise instance
public static double valueNoise(long seed,
double x,
double y)
public static double valueNoise(int seed,
double x,
double y,
double z)
public static double valueNoise(int seed,
double x,
double y,
double z,
double w)
public static double valueNoise(int seed,
double x,
double y,
double z,
double w,
double u)
public static double valueNoise(int seed,
double x,
double y,
double z,
double w,
double u,
double v)
public double getNoise(double x,
double y)
getNoise in interface Noise.Noise2DgetNoise in class ClassicNoisepublic double getNoiseWithSeed(double x,
double y,
long seed)
getNoiseWithSeed in interface Noise.Noise2DgetNoiseWithSeed in class ClassicNoiseCopyright © Eben Howard 2012–2022. All rights reserved.