Stepinizer

public class Stepinizer implements Function, Double>, Double2DoubleFunction

Class Stepinizer. Provides stepinizer functionality for the Hytale server.

java.lang.Object > Stepinizer

Field Summary

stepSize

private double stepSize

Field stepSize.

stepSizeHalf

private double stepSizeHalf

Field stepSizeHalf.

slope

private double slope

Field slope.

topSmooth

private double topSmooth

Field topSmooth.

bottomSmooth

private double bottomSmooth

Field bottomSmooth.

polarity

final double polarity

Field polarity.

steepness

final double steepness

Field steepness.

bottomStep

final double bottomStep

Field bottomStep.

topStep

final double topStep

Field topStep.

remainder

final double remainder

Field remainder.

midPoint

final double midPoint

Field midPoint.

Method Detail

Stepinizer

public public Stepinizer ()

Method Stepinizer.

setSmooth

public Stepinizer setSmooth (final double top, final double bottom)

Method setSmooth.

Parameters:
final double top
final double bottom

setEdgeSlope

public Stepinizer setEdgeSlope (final double slope)

Method setEdgeSlope.

Parameters:
final double slope

setStep

public Stepinizer setStep (final double size)

Method setStep.

Parameters:
final double size

apply

public double apply (final double x)

Method apply.

Parameters:
final double x

get

public double get (final double x)

Method get.

Parameters:
final double x

closestStep

private double closestStep (final double x)

Method closestStep.

Parameters:
final double x

topStep

private double topStep (final double x)

Method topStep.

Parameters:
final double x

bottomStep

private double bottomStep (final double x)

Method bottomStep.

Parameters:
final double x

polarity

private double polarity (final double x)

Method polarity.

Parameters:
final double x

steepness

private double steepness (final double x)

Method steepness.

Parameters:
final double x