Class ConstantWave

  extended by toxi.math.waves.AbstractWave
      extended by 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


public ConstantWave(float value)
Method Detail


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
current (newly calculated) wave value