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 classMitchellNoise.Vec4 -
Field Summary
Fields Modifier and Type Field Description MitchellNoise.Vec4[]coefint[]floorsintMAX_DIMlongseed -
Constructor Summary
Constructors Constructor Description MitchellNoise()MitchellNoise(long seed, int maxDimension) -
Method Summary
Modifier and Type Method Description doublearbitraryNoise(long seed, double... points)static longlatticeValue(long lat)doublespline(int dim, long lattice)
-
Field Details
-
Constructor Details
-
MitchellNoise
public MitchellNoise() -
MitchellNoise
-
-
Method Details