Package toxi.math.waves
Class ConstantWave
java.lang.Object
toxi.math.waves.AbstractWave
toxi.math.waves.ConstantWave
Implements a constant value as waveform.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class toxi.math.waves.AbstractWave
cyclePhase, cyclePhase, hertzToRadians, pop, push, radiansToHertz, reset, setPhase, toString
-
Constructor Details
-
ConstantWave
public ConstantWave(float value)
-
-
Method Details
-
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 callingAbstractWave.cyclePhase()
.- Specified by:
update
in classAbstractWave
- Returns:
- current (newly calculated) wave value
-