Docs / Shaping functions

Glossary: CubicDoubleSeat

The curve of CubicDoubleSeat, its parameters and its constructor.

Color legend plain property method

Two cubics that meet flat at (A, B): a rise, a pause, a rise.

A class in the category ShapingFunctionCategory.Cubic. It derives from BaseShapingFunction and has its members too: CalculateOutput gives the curve. The parameters page shows it in context, with what its parameters do.

Names are colored by what they are: a property or a method; values and fields keep the plain color.

The curve

The curve of CubicDoubleSeat for several settings of its parameters
(A, B) = (0.3, 0.7), (0.5, 0.5) and (0.7, 0.3). Each curve is flat at its dot.
Property Value
Id ShapingFunctionId.CubicDoubleSeat, number 28
Category ShapingFunctionCategory.Cubic
Name "Cubic Double Seat"
Order 3
ParameterCount 2
HasVariableOrder false

For an input x from 0 to 1, the output is B − B(1 − x / A)³ up to x = A, and B + (1 − B)((x − A) / (1 − A))³ after it.

It is flat at (A, B), where the two cubics meet. With its defaults, A = 0.00001 and B = 0, it is CubicEaseIn to within 0.00001, so set A and B before using it. It stays within 0 to 1 and never goes back.

Properties

A →

float · From IOneParameter. The x of the point where the two cubics meet, flat. Clamped to 0.00001 to 0.99999 when set, so the curve never divides by 0; 0.00001 by default. Throws ArgumentOutOfRangeException for NaN and keeps the value it had.

B →

float · From ITwoParameters. The y of that point: the curve is flat at (A, B). Clamped to 0 to 1 when set; 0 by default. Throws ArgumentOutOfRangeException for NaN and keeps the value it had.

Methods

CubicDoubleSeat() →

CubicDoubleSeat() · Creates the curve, with its parameters at their defaults. ShapingFunctionFactory.Create creates the same from ShapingFunctionId.CubicDoubleSeat.