NoiseHeightThresholdInterpreter

public class NoiseHeightThresholdInterpreter implements IHeightThresholdInterpreter

Class NoiseHeightThresholdInterpreter. Provides noiseheightthresholdinterpreter functionality for the Hytale server.

java.lang.Object > NoiseHeightThresholdInterpreter

Field Summary

length

final int length

Field length.

distance

final float distance

Field distance.

Method Detail

NoiseHeightThresholdInterpreter

public public NoiseHeightThresholdInterpreter (final NoiseProperty noise, @Nonnull final float[] keys, @Nonnull final IHeightThresholdInterpreter[] values)

Method NoiseHeightThresholdInterpreter.

Parameters:
final NoiseProperty noise
@Nonnull final float[] keys
@Nonnull final IHeightThresholdInterpreter[] values

getLowestNonOne

public int getLowestNonOne ()

Method getLowestNonOne.

getHighestNonZero

public int getHighestNonZero ()

Method getHighestNonZero.

noise

protected double noise (final int seed, final double x, final double y)

Method noise.

Parameters:
final int seed
final double x
final double y

getContext

public double getContext (final int seed, final double x, final double y)

Method getContext.

Parameters:
final int seed
final double x
final double y

getLength

public int getLength ()

Method getLength.

getThreshold

public float getThreshold (final int seed, final double x, final double z, final int height)

Method getThreshold.

Parameters:
final int seed
final double x
final double z
final int height

lerp

static float lerp (final float from, final float to, final float t)

Method lerp.

Parameters:
final float from
final float to
final float t

checkInterpreterLength

static void checkInterpreterLength (@Nonnull final IHeightThresholdInterpreter[] values)

Method checkInterpreterLength.

Parameters:
@Nonnull final IHeightThresholdInterpreter[] values

toString

public String toString ()

Method toString.