Class WorleyNoiseResult
java.lang.Object
de.articdive.jnoise.generators.noisegen.worley.WorleyNoiseResult
- All Implemented Interfaces:
NoiseResult
This class wraps the result of Worley Noise.
-
Method Summary
Modifier and TypeMethodDescription@org.jspecify.annotations.Nullable double[]
Returns the feature point to the specified noise coordinates.double
The unmodified noise value.double
getValue()
Gets the current (already modified) noise value.void
setValue
(double value) Sets the noise value, usually used byNoiseModifier
in post-processing.
-
Method Details
-
getValue
public double getValue()Gets the current (already modified) noise value.- Specified by:
getValue
in interfaceNoiseResult
- Returns:
- the current, possibly modified, noise value.
-
setValue
public void setValue(double value) Sets the noise value, usually used byNoiseModifier
in post-processing.- Specified by:
setValue
in interfaceNoiseResult
- Parameters:
value
- new output for the pure mathematical value of the noise result.
-
getUnmodifiedValue
public double getUnmodifiedValue()The unmodified noise value. (The noise before modifiers were run).- Returns:
- the unmodified noise value.
-
getClosestPoint
public @org.jspecify.annotations.Nullable double[] getClosestPoint()Returns the feature point to the specified noise coordinates.- Returns:
- array of double representing the location vector of the closest point.
-