Class GradientNoiseProperty
java.lang.Object
com.hypixel.hytale.procedurallib.property.GradientNoiseProperty
- All Implemented Interfaces:
NoiseProperty
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final doubleprotected final doubleprotected final GradientNoiseProperty.GradientModeprotected final NoiseProperty -
Constructor Summary
ConstructorsConstructorDescriptionGradientNoiseProperty(NoiseProperty noise, GradientNoiseProperty.GradientMode mode, double distance, double normalize) -
Method Summary
Modifier and TypeMethodDescriptionprotected static floatconvertRange(float angle) doubleget(int seed, double x, double y) doubleget(int seed, double x, double y, double z) protected static doublegetAbsAngle(double dx, double dy) protected static doublegetAngle(double dx, double dy) protected static doublegetMagnitude(double dx, double dy, double invNormalize)
-
Field Details
-
noise
-
mode
-
distance
protected final double distance -
invNormalize
protected final double invNormalize
-
-
Constructor Details
-
GradientNoiseProperty
public GradientNoiseProperty(NoiseProperty noise, GradientNoiseProperty.GradientMode mode, double distance, double normalize)
-
-
Method Details
-
get
public double get(int seed, double x, double y) - Specified by:
getin interfaceNoiseProperty
-
get
public double get(int seed, double x, double y, double z) - Specified by:
getin interfaceNoiseProperty
-
getAngle
protected static double getAngle(double dx, double dy) -
getAbsAngle
protected static double getAbsAngle(double dx, double dy) -
getMagnitude
protected static double getMagnitude(double dx, double dy, double invNormalize) -
convertRange
protected static float convertRange(float angle)
-