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.waves
Class ConstantWave

    java.lang.Object
      toxi.math.waves.AbstractWave
          toxi.math.waves.ConstantWave

    public class ConstantWave

extends AbstractWave

Implements a constant value as waveform.

Field Summary

Fields inherited from class toxi.math.waves.AbstractWave
`amp, frequency, offset, phase, PI, TWO_PI, value`

Constructor Summary
`ConstantWave(float value)`

Method Summary
`float` | `update()` Updates the wave and returns new value.

Methods inherited from class toxi.math.waves.AbstractWave
`cyclePhase, cyclePhase, hertzToRadians, pop, push, radiansToHertz, reset, setPhase, toString`

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

Constructor Detail

### ConstantWave

    public ConstantWave(float value)

Method Detail

### update

    public final float update()

  Description copied from class: `AbstractWave`
  Updates the wave and returns new value. Implementing classes should manually ensure the phase remains in the 0...TWO_PI interval or by calling `AbstractWave.cyclePhase()`.

  Specified by:
    `update` in class `AbstractWave`
  Returns:
    current (newly calculated) wave 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