|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.math.Noise
public class Noise
Perlin Noise functions
Constructor Summary | |
---|---|
Noise()
|
Method Summary | |
---|---|
float |
evaluate(float x)
|
float |
evaluate(float x,
float y)
|
float |
evaluate(float x,
float y,
float z)
|
static float[] |
findRange(Function1D f,
float[] minmax)
Returns the minimum and maximum of a number of random values of the given function. |
static float[] |
findRange(Function2D f,
float[] minmax)
Returns the minimum and maximum of a number of random values of the given function. |
static float |
lerp(float t,
float a,
float b)
|
static float |
noise1(float x)
Compute 1-dimensional Perlin noise. |
static float |
noise2(float x,
float y)
Compute 2-dimensional Perlin noise. |
static float |
noise3(float x,
float y,
float z)
Compute 3-dimensional Perlin noise. |
static float |
turbulence2(float x,
float y,
float octaves)
Compute turbulence using Perlin noise. |
static float |
turbulence3(float x,
float y,
float z,
float octaves)
Compute turbulence using Perlin noise. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Noise()
Method Detail |
---|
public float evaluate(float x)
evaluate
in interface Function1D
public float evaluate(float x, float y)
evaluate
in interface Function2D
public float evaluate(float x, float y, float z)
evaluate
in interface Function3D
public static float turbulence2(float x, float y, float octaves)
x
- the x valuey
- the y valueoctaves
- number of octaves of turbulence
public static float turbulence3(float x, float y, float z, float octaves)
x
- the x valuey
- the y valueoctaves
- number of octaves of turbulence
public static float noise1(float x)
x
- the x value
public static float noise2(float x, float y)
x
- the x coordinatey
- the y coordinate
public static float noise3(float x, float y, float z)
x
- the x coordinatey
- the y coordinatey
- the y coordinate
public static float lerp(float t, float a, float b)
public static float[] findRange(Function1D f, float[] minmax)
public static float[] findRange(Function2D f, float[] minmax)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |