com.aranai.dungeonator.generator
Class ImprovedNoise

java.lang.Object
  extended by 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
           
 
Constructor Summary
ImprovedNoise()
           
 
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
 

Field Detail

p

static final int[] p

permutation

static final int[] permutation
Constructor Detail

ImprovedNoise

public ImprovedNoise()
Method Detail

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)