com.aranai.dungeonator.generator
Class ImprovedNoise
java.lang.Object
com.aranai.dungeonator.generator.ImprovedNoise
public final class ImprovedNoise
- extends java.lang.Object
Field Summary |
(package private) static int[] |
p
|
(package private) static int[] |
permutation
|
Method Summary |
(package private) static double |
fade(double t)
|
(package private) static double |
grad(int hash,
double x,
double y,
double z)
|
(package private) static double |
lerp(double t,
double a,
double b)
|
static double |
noise(double x,
double y,
double z)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
p
static final int[] p
permutation
static final int[] permutation
ImprovedNoise
public ImprovedNoise()
noise
public static double noise(double x,
double y,
double z)
fade
static double fade(double t)
lerp
static double lerp(double t,
double a,
double b)
grad
static double grad(int hash,
double x,
double y,
double z)