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