Ease Back in. - CSharp System

CSharp examples for System:Math Easing Function

Description

Ease Back in.

Demo Code


using System;/*from  ww w . j a v a 2 s .  c o m*/

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

Related Tutorials