Nez.Portable/Math/Mathf.cs
/// <summary>
/// lerps an angle in degrees between a and b. handles wrapping around 360
/// </summary>
/// <returns>The angle.</returns>
/// <param name="a">The alpha component.</param>
/// <param name="b">The blue component.</param>
/// <param name="t">T.</param>
lerps an angle in degrees between a and b. handles wrapping around 360
lerps an angle in degrees between a and b . handles wrapping around 360
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static float lerpAngle(float a, float b, float t)
        {
            float num = Mathf.repeat(b - a, 360f);
            if (num > 180f)
                num -= 360f;
            return a + num * clamp01(t);
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static float lerpAngle ( float a , float b , float t ) { float num = Mathf . repeat ( b - a , 360f ) ; if ( num > 180f ) num -= 360f ; return a + num * clamp01 ( t ) ; }
lerps an angle in degrees between a and b. handles wrapping around 360
lerps an angle in degrees between a and b . handles wrapping around 360
None
a
float
The alpha component.
The alpha component .
b
float
The blue component.
The blue component .
t
float
None