Package com.ardorcraft.util
Class SimplexNoise
java.lang.Object
com.ardorcraft.util.SimplexNoise
Simplex Noise in 2D, 3D and 4D. Based on the example code of this paper:
http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SimplexNoise
public SimplexNoise()
-
-
Method Details
-
noise
public static double noise(double x, double y) Computes 2D Simplex Noise.- Parameters:
x
- coordinatey
- coordinate- Returns:
- noise value in range -1 ... +1.
-
noise
public static double noise(double x, double y, double z) Computes 3D Simplex Noise.- Parameters:
x
- coordinatey
- coordinatez
- coordinate- Returns:
- noise value in range -1 ... +1
-
noise
public static double noise(double x, double y, double z, double w) Computes 4D Simplex Noise.- Parameters:
x
- coordinatey
- coordinatez
- coordinatew
- coordinate- Returns:
- noise value in range -1 ... +1
-