Package com.sk89q.worldedit.math.noise
Class VoronoiNoise
java.lang.Object
com.sk89q.worldedit.math.noise.VoronoiNoise
- All Implemented Interfaces:
NoiseGenerator
Generates Voronoi noise.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.royawesome.jlibnoise.module.source.Voronoi
double
protected net.royawesome.jlibnoise.module.source.Voronoi
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
setSeed
(int seed)
-
Constructor Details
-
VoronoiNoise
public VoronoiNoise()
-
-
Method Details
-
createModule
protected net.royawesome.jlibnoise.module.source.Voronoi createModule() -
getFrequency
public double getFrequency() -
setFrequency
public void setFrequency(double frequency) -
setSeed
public void setSeed(int seed) -
getSeed
public int getSeed() -
getModule
protected net.royawesome.jlibnoise.module.source.Voronoi 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)
-