Package toxi.math.noise
Class SimplexNoise
java.lang.Object
toxi.math.noise.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
- Author:
- Stefan Gustavson, Linkping University, Sweden (stegu at itn dot liu dot se), Karsten Schmidt (slight optimizations & restructuring)
-
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
-