Color legend plain property method
Quadratic in and out: speeds up evenly to the middle, then slows evenly to the end.
A class in the category ShapingFunctionCategory.Quadratic. 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.QuadraticEaseInOut, number 25 |
Category |
ShapingFunctionCategory.Quadratic |
Name |
"Quadratic EaseInOut" |
Order |
2 |
ParameterCount |
0 |
HasVariableOrder |
false |
For an input x from 0 to 1, the output is 2x² for x below 0.5, and 1 − (2 − 2x)² / 2 from 0.5.
It crosses the middle at twice the speed of Linear, the gentlest of the polynomial in-outs. It stays within 0 to 1 and never goes back.
Methods
QuadraticEaseInOut() →
QuadraticEaseInOut() · Creates the curve. ShapingFunctionFactory.Create creates the same from ShapingFunctionId.QuadraticEaseInOut.