|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.utility.math.NoiseFactory
public final class NoiseFactory
Bunch of functions for generating noise in different forms.
| Method Summary | |
|---|---|
static float |
cosineInterpolate(float a,
float b,
float x)
smother interpolation between two values. |
static int |
intNoise(int x)
Fairly bad noise function. |
static float |
linearInterpolate(float a,
float b,
float x)
linear interpolation between two values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int intNoise(int x)
public static float linearInterpolate(float a,
float b,
float x)
a - start pointb - end pointx - value between 0 and 1 representing the distance from a to b you want a new point
public static float cosineInterpolate(float a,
float b,
float x)
a - start pointb - end pointx - value between 0 and 1 representing the distance from a to b you want a new point
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||