findRange
public static float[] findRange(Function1D f,
float[] minmax)
Returns the minimum 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 float[] findRange(Function2D f,
float[] minmax)
Returns the minimum and maximum of a number of random values
of the given function. This is useful for making some stab at
normalising the function.
lerp
public static float lerp(float t,
float a,
float b)
noise1
public static float noise1(float x)
Compute 1-dimensional Perlin noise.
- noise value at x in the range -1..1
noise2
public static float noise2(float x,
float y)
Compute 2-dimensional Perlin noise.
x
- the x coordinatey
- the y coordinate
noise3
public static float noise3(float x,
float y,
float z)
Compute 3-dimensional Perlin noise.
x
- the x coordinatey
- the y coordinate
turbulence2
public static float turbulence2(float x,
float y,
float octaves)
Compute turbulence using Perlin noise.
x
- the x valuey
- the y valueoctaves
- number of octaves of turbulence
- turbulence value at (x,y)
turbulence3
public static float turbulence3(float x,
float y,
float z,
float octaves)
Compute turbulence using Perlin noise.
x
- the x valuey
- the y valueoctaves
- number of octaves of turbulence
- turbulence value at (x,y)