Package arc.util.noise
Class Noise
java.lang.Object
arc.util.noise.Noise
Perlin noise implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
fnoise
(float x, float y, float scale, float mag) static float
nnoise
(float x, float y, float scale, float mag) static float
noise
(float x, float y, float scale, float mag) static float
noise
(float x, float y, float scale, float mag, float xp) static double
rawNoise
(double x) static double
rawNoise
(double x, double y) static void
setSeed
(int s) static float
snoise
(float x, float y, float scale, float mag) static double
snoise
(float x, float y, float scale, float mag, float exp) static float
snoise3
(float x, float y, float z, float scale, float mag)
-
Constructor Details
-
Noise
public Noise()
-
-
Method Details
-
rawNoise
public static double rawNoise(double x) -
snoise
public static double snoise(float x, float y, float scale, float mag, float exp) -
snoise
public static float snoise(float x, float y, float scale, float mag) -
snoise3
public static float snoise3(float x, float y, float z, float scale, float mag) -
nnoise
public static float nnoise(float x, float y, float scale, float mag) -
noise
public static float noise(float x, float y, float scale, float mag) -
noise
public static float noise(float x, float y, float scale, float mag, float xp) -
fnoise
public static float fnoise(float x, float y, float scale, float mag) -
rawNoise
public static double rawNoise(double x, double y) -
setSeed
public static void setSeed(int s)
-