Class VoronoiNoise

java.lang.Object
arc.util.noise.VoronoiNoise

public class VoronoiNoise extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    VoronoiNoise(long seed, boolean useManhattan)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    boolean
     
    double
    noise(double x, double z, double frequency)
     
    double
    noise(double x, double y, double z, double frequency)
     
    void
    setSeed(long seed)
     
    void
    setUseDistance(boolean useDistance)
     
    static double
    valueNoise2D(int x, int z, long seed)
    To avoid having to store the feature points, we use a hash function of the coordinates and the seed instead.
    static double
    valueNoise3D(int x, int y, int z, long seed)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VoronoiNoise

      public VoronoiNoise(long seed, boolean useManhattan)
  • Method Details

    • valueNoise2D

      public static double valueNoise2D(int x, int z, long seed)
      To avoid having to store the feature points, we use a hash function of the coordinates and the seed instead. Those big scary numbers are arbitrary primes.
    • valueNoise3D

      public static double valueNoise3D(int x, int y, int z, long seed)
    • isUseDistance

      public boolean isUseDistance()
    • setUseDistance

      public void setUseDistance(boolean useDistance)
    • getSeed

      public long getSeed()
    • setSeed

      public void setSeed(long seed)
    • noise

      public double noise(double x, double z, double frequency)
    • noise

      public double noise(double x, double y, double z, double frequency)