Name

getPeriod

Examples

import net.fladdict.oscillator.*;

Oscillator osc = new OscSin(30,100,50);

println( osc.getPeriod());

Description

Returns current period of oscillator. Period indicates length of wave cycle. If period is 100, it means that it takes 100 times updat.

Syntax

  • osc.getPeriod()

Returns

  • float
  • current period value

Usage

  • Web & Application