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