|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.media.pictures.filters.math.Noise
public class Noise
Perlin Noise functions
| Constructor Summary | |
|---|---|
Noise()
|
|
| Method Summary | |
|---|---|
float |
evaluate(float x)
DOCUMENT ME! |
float |
evaluate(float x,
float y)
DOCUMENT ME! |
float |
evaluate(float x,
float y,
float z)
DOCUMENT ME! |
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)
DOCUMENT ME! |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Noise()
| Method Detail |
|---|
public float evaluate(float x)
evaluate in interface Function1Dx - DOCUMENT ME!
public float evaluate(float x,
float y)
evaluate in interface Function2Dx - DOCUMENT ME!y - DOCUMENT ME!
public float evaluate(float x,
float y,
float z)
evaluate in interface Function3Dx - DOCUMENT ME!y - DOCUMENT ME!z - DOCUMENT ME!
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 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)
t - DOCUMENT ME!a - DOCUMENT ME!b - DOCUMENT ME!
public static float[] findRange(Function1D f,
float[] minmax)
f - DOCUMENT ME!minmax - DOCUMENT ME!
public static float[] findRange(Function2D f,
float[] minmax)
f - DOCUMENT ME!minmax - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||