Class OldSimplexNoise
java.lang.Object
com.hypixel.hytale.procedurallib.logic.OldSimplexNoise
- All Implemented Interfaces:
NoiseFunction,NoiseFunction2d,NoiseFunction3d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static DoubleArray.Double2[]private static DoubleArray.Double3[]static final OldSimplexNoiseprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static doubleextrapolate(int seed, int x, int y, double xd, double yd) private static doubleextrapolate(int seed, int x, int y, int z, double xd, double yd, double zd) private static intfastFloor(double x) doubleget(int seed, int offsetSeed, double x, double y) doubleget(int seed, int offsetSeed, double x, double y, double z) toString()
-
Field Details
-
INSTANCE
-
STRETCH_CONSTANT_2D
private static final double STRETCH_CONSTANT_2D- See Also:
-
SQUISH_CONSTANT_2D
private static final double SQUISH_CONSTANT_2D- See Also:
-
STRETCH_CONSTANT_3D
private static final double STRETCH_CONSTANT_3D- See Also:
-
SQUISH_CONSTANT_3D
private static final double SQUISH_CONSTANT_3D- See Also:
-
NORM_CONSTANT_2D
private static final double NORM_CONSTANT_2D- See Also:
-
NORM_CONSTANT_3D
private static final double NORM_CONSTANT_3D- See Also:
-
gradients2D
-
gradients3D
-
-
Constructor Details
-
OldSimplexNoise
private OldSimplexNoise()
-
-
Method Details
-
get
public double get(int seed, int offsetSeed, double x, double y) - Specified by:
getin interfaceNoiseFunction2d
-
get
public double get(int seed, int offsetSeed, double x, double y, double z) - Specified by:
getin interfaceNoiseFunction3d
-
toString
-
extrapolate
private static double extrapolate(int seed, int x, int y, double xd, double yd) -
extrapolate
private static double extrapolate(int seed, int x, int y, int z, double xd, double yd, double zd) -
fastFloor
private static int fastFloor(double x)
-