Docs / Shaping functions

Glossary: EllipticalDoubleSeat

The curve of EllipticalDoubleSeat, its parameters and its constructor.

Color legend plain property method

Two quarter ellipses that meet flat at (A, B): a seat at any height.

A class in the category ShapingFunctionCategory.Elliptical. 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 EllipticalDoubleSeat 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.EllipticalDoubleSeat, number 16
Category ShapingFunctionCategory.Elliptical
Name "Elliptical Double Seat"
Order null
ParameterCount 2
HasVariableOrder false

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

It starts and ends upright and is flat at (A, B). With B equal to A it is CircularDoubleSeat. With its defaults, A = 0.00001 and B = 0, it is CircularEaseIn 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 arcs 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

EllipticalDoubleSeat() →

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