PingPongs (bounces) the value t, so that it is never larger than length and never smaller than 0.
The pingponged value.
The length of the pingpong.