Class Stepinizer
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.framework.math.Stepinizer
- All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2DoubleFunction,it.unimi.dsi.fastutil.Function<Double,,Double> DoubleUnaryOperator,Function<Double,Double>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleprivate doubleprivate doubleprivate double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleapply(double x) private doublebottomStep(double x) private doubleclosestStep(double x) doubleget(double x) private doublepolarity(double x) setEdgeSlope(double slope) setSmooth(double top, double bottom) setStep(double size) private doublesteepness(double x) private doubletopStep(double x) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.doubles.Double2DoubleFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsDouble, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKey, containsKey, defaultReturnValue, defaultReturnValue, get, getOrDefault, getOrDefault, put, put, remove, removeMethods inherited from interface java.util.function.DoubleUnaryOperator
andThen, composeMethods inherited from interface it.unimi.dsi.fastutil.Function
apply, clear, size
-
Field Details
-
stepSize
private double stepSize -
stepSizeHalf
private double stepSizeHalf -
slope
private double slope -
topSmooth
private double topSmooth -
bottomSmooth
private double bottomSmooth
-
-
Constructor Details
-
Stepinizer
public Stepinizer()
-
-
Method Details
-
setSmooth
-
setEdgeSlope
-
setStep
-
apply
public double apply(double x) -
get
public double get(double x) - Specified by:
getin interfaceit.unimi.dsi.fastutil.doubles.Double2DoubleFunction
-
closestStep
private double closestStep(double x) -
topStep
private double topStep(double x) -
bottomStep
private double bottomStep(double x) -
polarity
private double polarity(double x) -
steepness
private double steepness(double x)
-