- Namespace
- StrideToolkit
.Mathematics - Containing Type
- Easing
Syntax
public static double ElasticEaseInOut(double amount)
Remarks
Modeled after the piecewise exponentially-damped sine wave:
y = (1/2)*sin(13pi/2*(2*x))*Math.Pow(2, 10 * ((2*x) - 1)) ; [0,0.5]
y = (1/2)*(sin(-13pi/2*((2x-1)+1))*Math.Pow(2,-10(2*x-1)) + 2) ; [0.5, 1]
Parameters
Name | Type | Description |
---|---|---|
amount | double |
Return Value
Type | Description |
---|---|
double |