| 46 | } |
| 47 | |
| 48 | float SineWave(float min, float max, float period, float phase) { |
| 49 | float ampl = max - min; |
| 50 | return min + ampl * sin(((Clock() / period) + phase) * 2 * M_PI); |
| 51 | } |
| 52 | |
| 53 | bool BlinkFunc(float period) { return (int)(Clock() / period) & 1; } |
no test coverage detected