All Packages Class Hierarchy This Package Previous Next Index
Class com.jhlabs.math.Noise
java.lang.Object
|
+----com.jhlabs.math.Noise
- public class Noise
- extends java.lang.Object
- implements com.jhlabs.math.Function1D, com.jhlabs.math.Function2D, com.jhlabs.math.Function3D
Perlin Noise functions
-
Noise()
-
-
evaluate(double)
-
-
evaluate(double, double)
-
-
evaluate(double, double, double)
-
-
findRange(Function1D, double[])
- Returns the minmimum and maximum of a number of random values
of the given function.
-
findRange(Function2D, double[])
- Returns the minmimum and maximum of a number of random values
of the given function.
-
noise1(double)
- Compute 1-dimensional Perlin noise.
-
noise2(double, double)
- Compute 2-dimensional Perlin noise.
-
noise3(double, double, double)
- Compute 3-dimensional Perlin noise.
-
turbulence2(double, double, double)
- Compute turbulence using Perlin noise.
Noise
public Noise()
evaluate
public double evaluate(double x)
evaluate
public double evaluate(double x,
double y)
evaluate
public double evaluate(double x,
double y,
double z)
turbulence2
public static double turbulence2(double x,
double y,
double octaves)
- Compute turbulence using Perlin noise.
- Parameters:
- x - the x value
- y - the y value
- octaves - number of octaves of turbulence
- Returns:
- turbulence value at (x,y)
noise1
public static double noise1(double x)
- Compute 1-dimensional Perlin noise.
- Parameters:
- x - the x value
- Returns:
- noise value at x in the range -1..1
noise2
public static double noise2(double x,
double y)
- Compute 2-dimensional Perlin noise.
- Parameters:
- x - the x coordinate
- y - the y coordinate
- Returns:
- noise value at (x,y)
noise3
public double noise3(double x,
double y,
double z)
- Compute 3-dimensional Perlin noise.
- Parameters:
- x - the x coordinate
- y - the y coordinate
- y - the y coordinate
- Returns:
- noise value at (x,y,z)
findRange
public static double[] findRange(com.jhlabs.math.Function1D f,
double minmax[])
- Returns the minmimum and maximum of a number of random values
of the given function. This is useful for making some stab at
normalising the function.
findRange
public static double[] findRange(com.jhlabs.math.Function2D f,
double minmax[])
- Returns the minmimum and maximum of a number of random values
of the given function. This is useful for making some stab at
normalising the function.
All Packages Class Hierarchy This Package Previous Next Index