CSharp examples for System:Math Easing Function
Easing equation function for a cubic (t^3) easing in: accelerating from zero velocity.
using System;/*from ww w . j a v a2s . c o m*/ public class Main{ /// <summary> /// Easing equation function for a cubic (t^3) easing in: /// accelerating from zero velocity. /// </summary> /// <param name="t">Current time in seconds.</param> /// <param name="b">Starting value.</param> /// <param name="c">Change in value.</param> /// <param name="d">Duration of animation.</param> /// <returns>The correct value.</returns> public static double CubicEaseIn( double t, double b, double c, double d ) { return c * ( t /= d ) * t * t + b; } }