Interface Noise2

All Known Implementing Classes:
Perlin2

public interface Noise2
Interface for a 2-dimensional noise generator.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    sample(float sampleX, float sampleY)
    Sample the noise function at a specified point.
    float
    sampleNormalized(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 point
      sampleY - 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 point
      sampleY - the 2nd coordinate of the sample point
      Returns:
      noise value