Nez.Portable/Math/Mathf.cs
/// <summary>
/// loops t so that it is never larger than length and never smaller than 0
/// </summary>
/// <param name="t">T.</param>
/// <param name="length">Length.</param>
loops t so that it is never larger than length and never smaller than 0
loops t so that it is never larger than length and never smaller than 0
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static float repeat(float t, float length)
        {
            return t - Mathf.floor(t / length) * length;
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static float repeat ( float t , float length ) { return t - Mathf . floor ( t / length ) * length ; }
loops t so that it is never larger than length and never smaller than 0
loops t so that it is never larger than length and never smaller than 0
t
float
None
length
float
None