render
Class Noise

java.lang.Object
  |
  +--render.Noise

public final class Noise
extends java.lang.Object

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.

See Also:
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

seed

public static int seed
Initialization seed used to start the random number generator.

Constructor Detail

Noise

public Noise()
Method Detail

noise

public static double noise(double x)
Computes noise function for one dimension at x.

Parameters:
x - 1 dimensional parameter
Returns:
the noise value at x

noise

public static double noise(double x,
                           double y)
Computes noise function for two dimensions at the point (x,y).

Parameters:
x - x dimension parameter
y - y dimension parameter
Returns:
the value of noise at the point (x,y)

noise

public static double noise(double x,
                           double y,
                           double z)
Computes noise function for three dimensions at the point (x,y,z).

Parameters:
x - x dimension parameter
y - y dimension parameter
z - z dimension parameter
Returns:
the noise value at the point (x, y, z)