Package jme3utilities.math.noise
Interface Noise2
- All Known Implementing Classes:
Perlin2
public interface Noise2
Interface for a 2-dimensional noise generator.
-
Method Summary
Modifier and TypeMethodDescriptionfloatsample(float sampleX, float sampleY) Sample the noise function at a specified point.floatsampleNormalized(float sampleX, float sampleY) Sample the noise function at a specified point and normalize it to the range [-1, 1].
-
Method Details
-
sample
float sample(float sampleX, float sampleY) Sample the noise function at a specified point.- Parameters:
sampleX- the first coordinate of the sample pointsampleY- the 2nd coordinate of the sample point- Returns:
- noise value
-
sampleNormalized
float sampleNormalized(float sampleX, float sampleY) Sample the noise function at a specified point and normalize it to the range [-1, 1].- Parameters:
sampleX- the first coordinate of the sample pointsampleY- the 2nd coordinate of the sample point- Returns:
- noise value
-