Class GeneralNoise
java.lang.Object
com.hypixel.hytale.procedurallib.logic.GeneralNoise
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DoubleArray.Double2[]private static final DoubleArray.Double3[]static final intstatic final intstatic final int -
Constructor Summary
Constructors -
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:
-
GRAD_2D
-
GRAD_3D
-
-
Constructor Details
-
GeneralNoise
private GeneralNoise()
-
-
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)
-