Contents
Class GeneralNoise
java.lang.Object
com.hypixel.hytale.procedurallib.logic.GeneralNoise
- Since:
- 12.06.2017
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic intfastCeil(double f) static intfastFloor(double f) static doublegradCoord2D(int seed, int x, int y, double xd, double yd) static doublegradCoord3D(int seed, int x, int y, int z, double xd, double yd, double zd) static inthash2D(int seed, int x, int y) static inthash3D(int seed, int x, int y, int z) static doublelerp(double a, double b, double t) static doublelimit(double val)
-
Field Details
-
X_PRIME
public static final int X_PRIME- See Also:
-
Y_PRIME
public static final int Y_PRIME- See Also:
-
Z_PRIME
public static final int Z_PRIME- See Also:
-
-
Method Details
-
fastFloor
public static int fastFloor(double f) -
fastCeil
public static int fastCeil(double f) -
lerp
public static double lerp(double a, double b, double t) -
hash2D
public static int hash2D(int seed, int x, int y) -
hash3D
public static int hash3D(int seed, int x, int y, int z) -
gradCoord2D
public static double gradCoord2D(int seed, int x, int y, double xd, double yd) -
gradCoord3D
public static double gradCoord3D(int seed, int x, int y, int z, double xd, double yd, double zd) -
limit
public static double limit(double val)
-