Color legend plain property method
A quadratic Bézier from (0, 0) to (1, 1) shaped by one control point.
A class in the category ShapingFunctionCategory.Bezier. 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
| Property | Value |
|---|---|
Id |
ShapingFunctionId.BezierQuadratic, number 4 |
Category |
ShapingFunctionCategory.Bezier |
Name |
"Bezier Quadratic" |
Order |
2 |
ParameterCount |
2 |
HasVariableOrder |
false |
For an input x from 0 to 1, the output is the y of the point of the quadratic Bézier from (0, 0) to (1, 1), with control point (A, B), whose x is x: t from x = (1 − 2A)t² + 2At, then y = (1 − 2B)t² + 2Bt. The first step is solved in closed form, without cancellation.
With A and B at 0, their default, it is a straight line. The curve leaves (0, 0) toward the control point and comes into (1, 1) from it. It stays within 0 to 1 and never goes back.
Properties
A →
float · From IOneParameter. The x of the control point. Clamped to 0 to 1 when set; 0 by default. Throws ArgumentOutOfRangeException for NaN and keeps the value it had.
B →
float · From ITwoParameters. The y of the control point. Clamped to 0 to 1 when set; 0 by default. Throws ArgumentOutOfRangeException for NaN and keeps the value it had.
Methods
BezierQuadratic() →
BezierQuadratic() · Creates the curve, with its parameters at their defaults. ShapingFunctionFactory.Create creates the same from ShapingFunctionId.BezierQuadratic.