Package com.sk89q.worldedit.math.noise
Class PerlinNoise
java.lang.Object
com.sk89q.worldedit.math.noise.PerlinNoise
- All Implemented Interfaces:
NoiseGenerator
Generates Perlin noise.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.royawesome.jlibnoise.module.source.Perlin
double
double
protected net.royawesome.jlibnoise.module.source.Perlin
int
double
int
getSeed()
float
Get the noise value for the given position.float
Get the noise value for the given position.void
setFrequency
(double frequency) void
setLacunarity
(double lacunarity) void
setOctaveCount
(int octaveCount) void
setPersistence
(double persistence) void
setSeed
(int seed)
-
Constructor Details
-
PerlinNoise
public PerlinNoise()
-
-
Method Details
-
createModule
protected net.royawesome.jlibnoise.module.source.Perlin createModule() -
getFrequency
public double getFrequency() -
setFrequency
public void setFrequency(double frequency) -
getLacunarity
public double getLacunarity() -
setLacunarity
public void setLacunarity(double lacunarity) -
getOctaveCount
public int getOctaveCount() -
setOctaveCount
public void setOctaveCount(int octaveCount) -
setPersistence
public void setPersistence(double persistence) -
getPersistence
public double getPersistence() -
setSeed
public void setSeed(int seed) -
getSeed
public int getSeed() -
getModule
protected net.royawesome.jlibnoise.module.source.Perlin getModule() -
noise
Description copied from interface:NoiseGenerator
Get the noise value for the given position. The returned value may change on every future call for the same position.- Specified by:
noise
in interfaceNoiseGenerator
- Parameters:
position
- the position- Returns:
- a noise value between 0 (inclusive) and 1 (inclusive)
-
noise
Description copied from interface:NoiseGenerator
Get the noise value for the given position. The returned value may change on every future call for the same position.- Specified by:
noise
in interfaceNoiseGenerator
- Parameters:
position
- the position- Returns:
- a noise value between 0 (inclusive) and 1 (inclusive)
-