Nez.Portable/Math/Mathf.cs
/// <summary>
/// decrements t and ensures it is always greater than or equal to 0 and less than length
/// </summary>
/// <returns>The with wrap.</returns>
/// <param name="t">T.</param>
/// <param name="length">Length.</param>
decrements t and ensures it is always greater than or equal to 0 and less than length
decrements t and ensures it is always greater than or equal to 0 and less than length
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static int decrementWithWrap(int t, int length)
        {
            t--;
            if (t < 0)
                return length - 1;
            return t;
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static int decrementWithWrap ( int t , int length ) { t -- ; if ( t < 0 ) return length - 1 ; return t ; }
decrements t and ensures it is always greater than or equal to 0 and less than length
decrements t and ensures it is always greater than or equal to 0 and less than length
The with wrap.
The with wrap .
t
int
None
length
int
None