Constructor
new LinearProgression(step)
Creates an instance of LinearProgression.
Example
// linear progression in steps of 2
new tngs.LinearProgression(2) // 0, 2, 4, 6, 8, ...
// linear progression in steps of 0.75
new tngs.LinearProgression(0.75) // 0.0, 0.75, 1.5, 2.25, 3.0, ...
Parameters:
Name | Type | Description |
---|---|---|
step |
number | The series interval. |
Extends
Methods
Advance()
Moves to the next value in the series.
Reset()
Puts the progression in its initial state (_value = 0).
- Source:
- Overrides: