MathfRepeat
MathfRepeat is a function commonly found in game development and mathematical libraries, particularly in Unity. Its primary purpose is to repeat a value within a specified range. Given a value, a minimum bound, and a maximum bound, MathfRepeat ensures the output value stays within the inclusive range of min and max.
If the input value is already within the range [min, max], the function returns the value unchanged.
The typical signature for such a function would be Mathf.Repeat(float t, float length). In this case, 't'