Class VoronoiNoise

java.lang.Object
com.sk89q.worldedit.math.noise.VoronoiNoise
All Implemented Interfaces:
NoiseGenerator

public class VoronoiNoise extends Object
Generates Voronoi noise.
  • 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

      public float noise(Vector2 position)
      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 interface NoiseGenerator
      Parameters:
      position - the position
      Returns:
      a noise value between 0 (inclusive) and 1 (inclusive)
    • noise

      public float noise(Vector3 position)
      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 interface NoiseGenerator
      Parameters:
      position - the position
      Returns:
      a noise value between 0 (inclusive) and 1 (inclusive)