Color legend plain property method
Hops off the start, crosses the middle at full speed and bounces to rest on the end.
A class in the category ShapingFunctionCategory.Bounce. It derives from BaseShapingFunction and has its members too: CalculateOutput gives the curve. The curves page shows it in context, with the rest of its family.
Names are colored by what they are: a property or a method; values and fields keep the plain color.
The curve
| Property | Value |
|---|---|
Id |
ShapingFunctionId.BounceEaseInOut, number 6 |
Category |
ShapingFunctionCategory.Bounce |
Name |
"Bounce EaseInOut" |
Order |
2 |
ParameterCount |
0 |
HasVariableOrder |
false |
For an input x from 0 to 1, the output is (1 − BounceEaseOut(1 − 2x)) / 2 for x below 0.5, and (1 + BounceEaseOut(2x − 1)) / 2 from 0.5.
Its first half is BounceEaseIn and its second half BounceEaseOut, each run at double speed and half height: the highest hop reaches 0.125 and the deepest dip 0.875. It stays within 0 to 1 but goes back between the bounces.
Methods
BounceEaseInOut() →
BounceEaseInOut() · Creates the curve. ShapingFunctionFactory.Create creates the same from ShapingFunctionId.BounceEaseInOut.