Class Easings
public static class Easings
- Inheritance
-
objectEasings
Methods
BackEaseIn(double)
Modeled after the overshooting cubic y = x^3-xsin(xpi)
public static double BackEaseIn(double p)
Parameters
pdouble
Returns
BackEaseInOut(double)
Modeled after the piecewise overshooting cubic function: y = (1/2)((2x)^3-(2x)sin(2xpi)) ; [0, 0.5) y = (1/2)*(1-((1-x)^3-(1-x)*sin((1-x)*pi))+1) ; [0.5, 1]
public static double BackEaseInOut(double p)
Parameters
pdouble
Returns
BackEaseOut(double)
Modeled after overshooting cubic y = 1-((1-x)^3-(1-x)*sin((1-x)*pi))
public static double BackEaseOut(double p)
Parameters
pdouble
Returns
BounceEaseIn(double)
public static double BounceEaseIn(double p)
Parameters
pdouble
Returns
BounceEaseInOut(double)
public static double BounceEaseInOut(double p)
Parameters
pdouble
Returns
BounceEaseOut(double)
public static double BounceEaseOut(double p)
Parameters
pdouble
Returns
CircularEaseIn(double)
Modeled after shifted quadrant IV of unit circle
public static double CircularEaseIn(double p)
Parameters
pdouble
Returns
CircularEaseInOut(double)
Modeled after the piecewise circular function y = (1/2)(1 - Math.Sqrt(1 - 4x^2)) ; [0, 0.5) y = (1/2)(Math.Sqrt(-(2x - 3)*(2x - 1)) + 1) ; [0.5, 1]
public static double CircularEaseInOut(double p)
Parameters
pdouble
Returns
CircularEaseOut(double)
Modeled after shifted quadrant II of unit circle
public static double CircularEaseOut(double p)
Parameters
pdouble
Returns
CubicEaseIn(double)
Modeled after the cubic y = x^3
public static double CubicEaseIn(double p)
Parameters
pdouble
Returns
CubicEaseInOut(double)
Modeled after the piecewise cubic y = (1/2)((2x)^3) ; [0, 0.5) y = (1/2)((2x-2)^3 + 2) ; [0.5, 1]
public static double CubicEaseInOut(double p)
Parameters
pdouble
Returns
CubicEaseOut(double)
Modeled after the cubic y = (x - 1)^3 + 1
public static double CubicEaseOut(double p)
Parameters
pdouble
Returns
ElasticEaseIn(double)
Modeled after the damped sine wave y = sin(13pi/2*x)*Math.Pow(2, 10 * (x - 1))
public static double ElasticEaseIn(double p)
Parameters
pdouble
Returns
ElasticEaseInOut(double)
Modeled after the piecewise exponentially-damped sine wave: y = (1/2)sin(13pi/2(2x))Math.Pow(2, 10 * ((2x) - 1)) ; [0,0.5) y = (1/2)(sin(-13pi/2*((2x-1)+1))Math.Pow(2,-10(2x-1)) + 2) ; [0.5, 1]
public static double ElasticEaseInOut(double p)
Parameters
pdouble
Returns
ElasticEaseOut(double)
Modeled after the damped sine wave y = sin(-13pi/2*(x + 1))*Math.Pow(2, -10x) + 1
public static double ElasticEaseOut(double p)
Parameters
pdouble
Returns
ExponentialEaseIn(double)
Modeled after the exponential function y = 2^(10(x - 1))
public static double ExponentialEaseIn(double p)
Parameters
pdouble
Returns
ExponentialEaseInOut(double)
Modeled after the piecewise exponential y = (1/2)2^(10(2x - 1)) ; [0,0.5) y = -(1/2)*2^(-10(2x - 1))) + 1 ; [0.5,1]
public static double ExponentialEaseInOut(double p)
Parameters
pdouble
Returns
ExponentialEaseOut(double)
Modeled after the exponential function y = -2^(-10x) + 1
public static double ExponentialEaseOut(double p)
Parameters
pdouble
Returns
Interpolate(double, Functions)
Interpolate using the specified function.
public static double Interpolate(double p, Easings.Functions function)
Parameters
Returns
Linear(double)
Modeled after the line y = x
public static double Linear(double p)
Parameters
pdouble
Returns
QuadraticEaseIn(double)
Modeled after the parabola y = x^2
public static double QuadraticEaseIn(double p)
Parameters
pdouble
Returns
QuadraticEaseInOut(double)
Modeled after the piecewise quadratic y = (1/2)((2x)^2) ; [0, 0.5) y = -(1/2)((2x-1)*(2x-3) - 1) ; [0.5, 1]
public static double QuadraticEaseInOut(double p)
Parameters
pdouble
Returns
QuadraticEaseOut(double)
Modeled after the parabola y = -x^2 + 2x
public static double QuadraticEaseOut(double p)
Parameters
pdouble
Returns
QuarticEaseIn(double)
Modeled after the quartic x^4
public static double QuarticEaseIn(double p)
Parameters
pdouble
Returns
QuarticEaseInOut(double)
Modeled after the piecewise quartic y = (1/2)((2x)^4) ; [0, 0.5) y = -(1/2)((2x-2)^4 - 2) ; [0.5, 1]
public static double QuarticEaseInOut(double p)
Parameters
pdouble
Returns
QuarticEaseOut(double)
Modeled after the quartic y = 1 - (x - 1)^4
public static double QuarticEaseOut(double p)
Parameters
pdouble
Returns
QuinticEaseIn(double)
Modeled after the quintic y = x^5
public static double QuinticEaseIn(double p)
Parameters
pdouble
Returns
QuinticEaseInOut(double)
Modeled after the piecewise quintic y = (1/2)((2x)^5) ; [0, 0.5) y = (1/2)((2x-2)^5 + 2) ; [0.5, 1]
public static double QuinticEaseInOut(double p)
Parameters
pdouble
Returns
QuinticEaseOut(double)
Modeled after the quintic y = (x - 1)^5 + 1
public static double QuinticEaseOut(double p)
Parameters
pdouble
Returns
SineEaseIn(double)
Modeled after quarter-cycle of sine wave
public static double SineEaseIn(double p)
Parameters
pdouble
Returns
SineEaseInOut(double)
Modeled after half sine wave
public static double SineEaseInOut(double p)
Parameters
pdouble
Returns
SineEaseOut(double)
Modeled after quarter-cycle of sine wave (different phase)
public static double SineEaseOut(double p)
Parameters
pdouble
Returns
Step(double)
An snappy animation that moves instantly to the next destination on the next keyframe
public static double Step(double p)
Parameters
pdouble