Docs / Shaping functions

Glossary: Linear

The curve of Linear and its constructor.

Color legend plain property method

The straight line: the output is the input.

A class in the category ShapingFunctionCategory.Linear. 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 Linear: the straight line: the output is the input.
Input across, output up.
Property Value
Id ShapingFunctionId.Linear, number 23
Category ShapingFunctionCategory.Linear
Name "Linear"
Order 1
ParameterCount 0
HasVariableOrder false

For an input x from 0 to 1, the output is x.

Constant speed from start to end: what every other curve is drawn against. It stays within 0 to 1 and never goes back.

Methods

Linear() →

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