Class SimplexD
java.lang.Object
cn.nukkit.level.generator.noise.nukkit.d.NoiseD
cn.nukkit.level.generator.noise.nukkit.d.PerlinD
cn.nukkit.level.generator.noise.nukkit.d.SimplexD
- Author:
- MagicDroidX (Nukkit Project)
-
Field Summary
Modifier and TypeFieldDescriptionprotected static double
protected static double
protected static double
protected static double
protected static double
protected static double
protected static double
protected static double
protected static double
protected static double
static final int[][]
protected final double
protected static double
protected static double
-
Constructor Summary
ConstructorDescriptionSimplexD
(NukkitRandom random, double octaves, double persistence) SimplexD
(NukkitRandom random, double octaves, double persistence, double expansion) -
Method Summary
Modifier and TypeMethodDescriptionprotected static double
dot2D
(int[] g, double x, double y) protected static double
dot3D
(int[] g, double x, double y, double z) protected static double
dot4D
(int[] g, double x, double y, double z, double w) double
getNoise2D
(double x, double y) double
getNoise3D
(double x, double y, double z) Methods inherited from class cn.nukkit.level.generator.noise.nukkit.d.NoiseD
bilinearLerp, fade, floor, grad, lerp, linearLerp, noise2D, noise2D, noise3D, noise3D, setOffset, trilinearLerp
-
Field Details
-
grad3
public static final int[][] grad3 -
SQRT_3
protected static double SQRT_3 -
SQRT_5
protected static double SQRT_5 -
F2
protected static double F2 -
G2
protected static double G2 -
G22
protected static double G22 -
F3
protected static double F3 -
G3
protected static double G3 -
F4
protected static double F4 -
G4
protected static double G4 -
G42
protected static double G42 -
G43
protected static double G43 -
G44
protected static double G44 -
offsetW
protected final double offsetW
-
-
Constructor Details
-
SimplexD
-
SimplexD
-
-
Method Details
-
dot2D
protected static double dot2D(int[] g, double x, double y) -
dot3D
protected static double dot3D(int[] g, double x, double y, double z) -
dot4D
protected static double dot4D(int[] g, double x, double y, double z, double w) -
getNoise3D
public double getNoise3D(double x, double y, double z) - Overrides:
getNoise3D
in classPerlinD
-
getNoise2D
public double getNoise2D(double x, double y) - Overrides:
getNoise2D
in classPerlinD
-