Package arc.util.noise
Class VoronoiNoise
java.lang.Object
arc.util.noise.VoronoiNoise
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSeed()
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)
-
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)
-