Contents
Class NodeFunction
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.math.NodeFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2DoubleFunction, it.unimi.dsi.fastutil.Function<Double,Double>, DoubleUnaryOperator, Function<Double, Double>
-
Constructor Summary
Constructors -
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
clear, size
-
Constructor Details
-
NodeFunction
public NodeFunction()Constructor.
-
-
Method Details
-
apply
-
get
public double get(double input) - Specified by:
getin interfaceit.unimi.dsi.fastutil.doubles.Double2DoubleFunction
-
addPoint
Adds a point to the function.- Parameters:
in- value of the pointout- value of the point- Returns:
- this instance
-
contains
public boolean contains(double x) Returns true if the function contains the provided point.- Parameters:
x- the point to check for- Returns:
- true if the point is registered
-