Package squidpony.squidmath
Class MitchellNoise
java.lang.Object
squidpony.squidmath.MitchellNoise
public class MitchellNoise extends Object
An arbitrary-dimensional noise generator; it's not suitable for real-time use, but could be very useful when used
with unconventional axes, particularly during level generation. It produces smooth, non-artifact-prone gradient noise
with lots of rounded "raindrops on a window" shapes. It is very biased toward central results (near 0.0) and only
rarely returns results near -1.0 or 1.0, the extremes of its range.
Sample of 2D MitchellNoise.
Created by Tommy Ettinger on 11/6/2019 using code by Donald Mitchell.
Sample of 2D MitchellNoise.
Created by Tommy Ettinger on 11/6/2019 using code by Donald Mitchell.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MitchellNoise.Vec4
-
Field Summary
Fields Modifier and Type Field Description MitchellNoise.Vec4[]
coef
int[]
floors
int
MAX_DIM
long
seed
-
Constructor Summary
Constructors Constructor Description MitchellNoise()
MitchellNoise(long seed, int maxDimension)
-
Method Summary
Modifier and Type Method Description double
arbitraryNoise(long seed, double... points)
static long
latticeValue(long lat)
double
spline(int dim, long lattice)
-
Field Details
-
Constructor Details
-
MitchellNoise
public MitchellNoise() -
MitchellNoise
-
-
Method Details