Docs / Shaping functions

Glossary: SineEaseInOut

The curve of SineEaseInOut and its constructor.

Color legend plain property method

Half a cosine wave: the gentlest ease in-out.

A class in the category ShapingFunctionCategory.Sine. 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

The curve of SineEaseInOut: half a cosine wave: the gentlest ease in-out.
Input across, output up. The dashed line is Linear.
Property Value
Id ShapingFunctionId.SineEaseInOut, number 42
Category ShapingFunctionCategory.Sine
Name "Sine EaseInOut"
Order null
ParameterCount 0
HasVariableOrder false

For an input x from 0 to 1, the output is (1 − cos(πx)) / 2.

It crosses the middle at 1.57 times the speed of Linear. It stays within 0 to 1 and never goes back.

Methods

SineEaseInOut() →

SineEaseInOut() · Creates the curve. ShapingFunctionFactory.Create creates the same from ShapingFunctionId.SineEaseInOut.