What is the Arduino equivalent of C#'s Mathf.pingpong?
<p>In C#, more specifically in Unity, there is a a method called <a href="http://docs.unity3d.com/ScriptReference/Mathf.PingPong.html" rel="nofollow">Mathf.PingPong</a>. What is the equivalent for Arduino?</p>