public class Noise extends Object implements Function1D, Function2D, Function3D
| Constructor and Description |
|---|
Noise() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public float evaluate(float x)
evaluate in interface Function1Dpublic float evaluate(float x,
float y)
evaluate in interface Function2Dpublic float evaluate(float x,
float y,
float z)
evaluate in interface Function3Dpublic static float turbulence2(float x,
float y,
float octaves)
x - the x valuey - the y valueoctaves - number of octaves of turbulencepublic static float turbulence3(float x,
float y,
float z,
float octaves)
x - the x valuey - the y valueoctaves - number of octaves of turbulencepublic static float noise1(float x)
x - the x valuepublic static float noise2(float x,
float y)
x - the x coordinatey - the y coordinatepublic static float noise3(float x,
float y,
float z)
x - the x coordinatey - the y coordinatey - the y coordinatepublic 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)
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.