Package arc.util.noise
Class VoronoiNoise
java.lang.Object
arc.util.noise.VoronoiNoise
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSeed()booleandoublenoise(double x, double z, double frequency) doublenoise(double x, double y, double z, double frequency) voidsetSeed(long seed) voidsetUseDistance(boolean useDistance) static doublevalueNoise2D(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 doublevalueNoise3D(int x, int y, int z, long seed)
-
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)
-