Class ConstantWave

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

public class ConstantWave extends AbstractWave
Implements a constant value as waveform.
  • 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 calling AbstractWave.cyclePhase().
      Specified by:
      update in class AbstractWave
      Returns:
      current (newly calculated) wave value