Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## toxi.math
Class ThresholdInterpolation

    java.lang.Object
      toxi.math.ThresholdInterpolation

All Implemented Interfaces:
  InterpolateStrategy

    public class ThresholdInterpolation

extends java.lang.Object
implements InterpolateStrategy

Defines a single step/threshold function which returns the min value for all factors < threshold and the max value for all others.

Field Summary
`float` | `threshold`

Constructor Summary
`ThresholdInterpolation(float threshold)`

Method Summary
`float` | `interpolate(float a, float b, float f)` Implements an interpolation equation.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### threshold

    public float threshold

Constructor Detail

### ThresholdInterpolation

    public ThresholdInterpolation(float threshold)

Method Detail

### interpolate

    public float interpolate(float a,
                             float b,
                             float f)

  Description copied from interface: `InterpolateStrategy`
  Implements an interpolation equation.

  Specified by:
    `interpolate` in interface `InterpolateStrategy`
  Parameters:
    `a` - current value
    `b` - target value
    `f` - normalized interpolation factor (0.0 .. 1.0)
  Returns:
    interpolated value

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD