Color legend plain property method
Cubic in and out: slow at both ends, fast in the middle.
A class in the category ShapingFunctionCategory.Cubic. 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.CubicEaseInOut, number 30 |
Category |
ShapingFunctionCategory.Cubic |
Name |
"Cubic EaseInOut" |
Order |
3 |
ParameterCount |
0 |
HasVariableOrder |
false |
For an input x from 0 to 1, the output is 4x³ for x below 0.5, and 1 − (2 − 2x)³ / 2 from 0.5.
It crosses the middle at three times the speed of Linear. It stays within 0 to 1 and never goes back.
Methods
CubicEaseInOut() →
CubicEaseInOut() · Creates the curve. ShapingFunctionFactory.Create creates the same from ShapingFunctionId.CubicEaseInOut.