Class SimplexNoise

java.lang.Object
com.ardorcraft.util.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
  • 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

    clone, equals, finalize, 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