Library for calculating sine and cosine waves.
The shape of the waves are configurable through the function parameters. Each time one of the functions is called the next value of the wave is calculated. A wave is separated into 360 steps.
The function calculates values for a sine wave. A call of the function calculates the next value of the wave.
The function calculates values for a cosine wave. A call of the function calculates the next value of the wave.