public final class PerlinNoiseSampler extends Object
Modifier and Type | Field and Description |
---|---|
double |
originX |
double |
originY |
double |
originZ |
private byte[] |
permutations |
Constructor and Description |
---|
PerlinNoiseSampler(Random random) |
Modifier and Type | Method and Description |
---|---|
private int |
getGradient(int hash) |
private static double |
grad(int hash,
double x,
double y,
double z) |
double |
sample(double x,
double y,
double z,
double double2,
double double3) |
double |
sample(int sectionX,
int sectionY,
int sectionZ,
double localX,
double localY,
double localZ,
double fadeLocalX,
double fadeLocalY,
double fadeLocalZ) |
private final byte[] permutations
public final double originX
public final double originY
public final double originZ
public PerlinNoiseSampler(Random random)
public double sample(double x, double y, double z, double double2, double double3)
private static double grad(int hash, double x, double y, double z)
private int getGradient(int hash)
public double sample(int sectionX, int sectionY, int sectionZ, double localX, double localY, double localZ, double fadeLocalX, double fadeLocalY, double fadeLocalZ)