public class RandomNoise extends Object implements NoiseGenerator
Random. Every time a noise
generating function is called, a new value will be returned.| Constructor and Description |
|---|
RandomNoise()
Create a new noise generator with a newly constructed
Random
instance. |
RandomNoise(Random random)
Create a new noise generator using the given
Random. |
| Modifier and Type | Method and Description |
|---|---|
float |
noise(Vector position)
Get the noise value for the given position.
|
float |
noise(Vector2D position)
Get the noise value for the given position.
|
public RandomNoise(Random random)
Random.random - the random instancepublic RandomNoise()
Random
instance.public float noise(Vector2D position)
NoiseGeneratornoise in interface NoiseGeneratorposition - the positionpublic float noise(Vector position)
NoiseGeneratornoise in interface NoiseGeneratorposition - the positionCopyright © 2010-2014. All Rights Reserved.