|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrender.Noise
Computes Perlin Noise for one, two, and three dimensions.
The result is a continuous function that interpolates a smooth path along a series random points. The function is consitent, so given the same parameters, it will always return the same value.
ImprovedNoise| Field Summary | |
static int |
seed
Initialization seed used to start the random number generator. |
| Constructor Summary | |
Noise()
|
|
| Method Summary | |
static double |
noise(double x)
Computes noise function for one dimension at x. |
static double |
noise(double x,
double y)
Computes noise function for two dimensions at the point (x,y). |
static double |
noise(double x,
double y,
double z)
Computes noise function for three dimensions at the point (x,y,z). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int seed
| Constructor Detail |
public Noise()
| Method Detail |
public static double noise(double x)
x - 1 dimensional parameter
public static double noise(double x,
double y)
x - x dimension parametery - y dimension parameter
public static double noise(double x,
double y,
double z)
x - x dimension parametery - y dimension parameterz - z dimension parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||