Ease Back out. - CSharp System

CSharp examples for System:Math Easing Function

Description

Ease Back out.

Demo Code


using System;/*from  w  w w.  ja  va  2  s  . co m*/

public class Main{
        /// <summary>
        /// Back out.
        /// </summary>
        /// <param name="t">Time elapsed.</param>
        /// <returns>Eased timescale.</returns>
        public static float BackOut(float t) {
            return (float)(1 - (--t) * (t) * (-2.70158 * t - 1.70158));
        }
}

Related Tutorials