Contents
Class InterpolatedCurve
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.math.InterpolatedCurve
- All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2DoubleFunction, it.unimi.dsi.fastutil.Function<Double,Double>, DoubleUnaryOperator, Function<Double, Double>
public class InterpolatedCurve
extends Object
implements it.unimi.dsi.fastutil.doubles.Double2DoubleFunction
-
Constructor Summary
ConstructorsConstructorDescriptionInterpolatedCurve(double positionA, double positionB, double smoothTransition, it.unimi.dsi.fastutil.doubles.Double2DoubleFunction functionA, it.unimi.dsi.fastutil.doubles.Double2DoubleFunction functionB) -
Method Summary
Methods inherited from class Object
equals, 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 DoubleUnaryOperator
andThen, composeMethods inherited from interface it.unimi.dsi.fastutil.Function
apply, clear, size
-
Constructor Details
-
InterpolatedCurve
public InterpolatedCurve(double positionA, double positionB, double smoothTransition, @Nonnull it.unimi.dsi.fastutil.doubles.Double2DoubleFunction functionA, @Nonnull it.unimi.dsi.fastutil.doubles.Double2DoubleFunction functionB)
-
-
Method Details
-
get
public double get(double x) - Specified by:
getin interfaceit.unimi.dsi.fastutil.doubles.Double2DoubleFunction
-
transitionCurve
public double transitionCurve(double ratio)
-