Class NodeFunction
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.framework.math.NodeFunction
- 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 static final doubleprivate final List<double[]> private final List<RangeDouble> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPoint(double in, double out) booleancontains(double x) doubleget(double input) private intindexBefore(double input) private voidMethods 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
clear, size
-
Field Details
-
FALLBACK_VALUE
private static final double FALLBACK_VALUE- See Also:
-
points
-
ranges
-
-
Constructor Details
-
NodeFunction
public NodeFunction()
-
-
Method Details
-
apply
-
get
public double get(double input) - Specified by:
getin interfaceit.unimi.dsi.fastutil.doubles.Double2DoubleFunction
-
addPoint
-
contains
public boolean contains(double x) -
initializeRanges
private void initializeRanges() -
indexBefore
private int indexBefore(double input)
-