Class SimplexNoise

java.lang.Object
toxi.math.noise.SimplexNoise

public class SimplexNoise extends Object
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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    noise(double x, double y)
    Computes 2D Simplex Noise.
    static double
    noise(double x, double y, double z)
    Computes 3D Simplex Noise.
    static double
    noise(double x, double y, double z, double w)
    Computes 4D Simplex Noise.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimplexNoise

      public SimplexNoise()
  • Method Details

    • noise

      public static double noise(double x, double y)
      Computes 2D Simplex Noise.
      Parameters:
      x - coordinate
      y - 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 - coordinate
      y - coordinate
      z - 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 - coordinate
      y - coordinate
      z - coordinate
      w - coordinate
      Returns:
      noise value in range -1 ... +1