|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.math.PerlinNoise
public class PerlinNoise
| Field Summary | |
|---|---|
private static int |
DEFAULT_NR_OF_POINTS
|
private float[] |
g
|
private static int |
randoms
|
| Constructor Summary | |
|---|---|
PerlinNoise(float lowerLimit,
float upperLimit)
Constructor, creates DEFAULT_NR_OF_POINTS random points |
|
PerlinNoise(int nr,
float lowerLimit,
float upperLimit)
Constructor, creates nr random points |
|
| Method Summary | |
|---|---|
private float |
getG(int index)
|
private float |
getG(int index,
int length)
|
void |
initialize(float lowerLimit,
float upperLimit)
Initialize random points |
float |
noise(float t)
Get the noise value at time t |
float |
noise(float t,
int l)
Get the noise value at time t, loop after l random points |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int DEFAULT_NR_OF_POINTS
private float[] g
private static int randoms
| Constructor Detail |
|---|
public PerlinNoise(int nr,
float lowerLimit,
float upperLimit)
nr - number of random points to generatelowerLimit - lowest value for a random pointupperLimit - highest value for a random point
public PerlinNoise(float lowerLimit,
float upperLimit)
lowerLimit - lowest value for a random pointupperLimit - highest value for a random point| Method Detail |
|---|
public void initialize(float lowerLimit,
float upperLimit)
lowerLimit - lowest value for a random pointupperLimit - highest value for a random pointprivate float getG(int index)
private float getG(int index,
int length)
public float noise(float t)
t - time
public float noise(float t,
int l)
t - timel - length
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||