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>

public class Stepinizer extends Object implements Function<Double,Double>, it.unimi.dsi.fastutil.doubles.Double2DoubleFunction
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private double
     
    private double
     
    private double
     
    private double
     
    private double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    apply(double x)
     
    private double
    bottomStep(double x)
     
    private double
    closestStep(double x)
     
    double
    get(double x)
     
    private double
    polarity(double x)
     
    setEdgeSlope(double slope)
     
    setSmooth(double top, double bottom)
     
    setStep(double size)
     
    private double
    steepness(double x)
     
    private double
    topStep(double x)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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, remove

    Methods inherited from interface java.util.function.DoubleUnaryOperator

    andThen, compose

    Methods 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

      @Nonnull public Stepinizer setSmooth(double top, double bottom)
    • setEdgeSlope

      @Nonnull public Stepinizer setEdgeSlope(double slope)
    • setStep

      @Nonnull public Stepinizer setStep(double size)
    • apply

      public double apply(double x)
    • get

      public double get(double x)
      Specified by:
      get in interface it.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)