Interface SeededNoiseGenerator
- All Superinterfaces:
NoiseGenerator
,NoiseSource
- All Known Subinterfaces:
SeededExplicitNoiseGenerator<NR>
- All Known Implementing Classes:
FastSimplexNoiseGenerator
,GaussianWhiteNoiseGenerator
,PerlinNoiseGenerator
,SuperSimplexNoiseGenerator
,ValueNoiseGenerator
,WhiteNoiseGenerator
,WorleyNoiseGenerator
Interface that denotes a seeded
NoiseGenerator
.
A seeded NoiseGenerator
has reproducability and should return the same value for the same seed at the same location.-
Method Summary
Modifier and TypeMethodDescriptiondouble
evaluateNoise
(double x, double y, double z, double w, long seed) Evaluates noise at a 4D point.double
evaluateNoise
(double x, double y, double z, long seed) Evaluates noise at a 3D point.double
evaluateNoise
(double x, double y, long seed) Evaluates noise at a 2D point.double
evaluateNoise
(double x, long seed) Evaluates noise at a 1D point.long
getSeed()
Returns the seed of the seeded noise generator.Methods inherited from interface de.articdive.jnoise.core.api.pipeline.NoiseSource
evaluateNoise, evaluateNoise, evaluateNoise, evaluateNoise
-
Method Details
-
evaluateNoise
double evaluateNoise(double x, long seed) Evaluates noise at a 1D point.- Parameters:
x
- X-Coordinate of the 1D point.seed
- seed for theSeededNoiseGenerator
to use.- Returns:
- noise value at the 1D point.
-
evaluateNoise
double evaluateNoise(double x, double y, long seed) Evaluates noise at a 2D point.- Parameters:
x
- X-Coordinate of the 2D point.y
- Y-Coordinate of the 2D point.seed
- seed for theSeededNoiseGenerator
to use.- Returns:
- noise value at the 2D point.
-
evaluateNoise
double evaluateNoise(double x, double y, double z, long seed) Evaluates noise at a 3D point.- Parameters:
x
- X-Coordinate of the 3D point.y
- Y-Coordinate of the 3D point.z
- Z-Coordinate of the 3D point.seed
- seed for theSeededNoiseGenerator
to use.- Returns:
- noise value at the 3D point.
-
evaluateNoise
double evaluateNoise(double x, double y, double z, double w, long seed) Evaluates noise at a 4D point.- Parameters:
x
- X-Coordinate of the 4D point.y
- Y-Coordinate of the 4D point.z
- Z-Coordinate of the 4D point.w
- W-Coordinate of the 4D point.seed
- seed for theSeededNoiseGenerator
to use.- Returns:
- noise value at the 4D point.
-
getSeed
long getSeed()Returns the seed of the seeded noise generator.- Returns:
- seed value of the noise generator.
-