Color legend plain property method
A cubic Bézier from (0, 0) to (1, 1) shaped by two control points: the curve of CSS’s cubic-bezier().
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
ease, (0.25, 0.1, 0.25, 1), and ease-in-out, (0.42, 0, 0.58, 1), with their control points.| Property | Value |
|---|---|
Id |
ShapingFunctionId.BezierCubic, number 3 |
Category |
ShapingFunctionCategory.Bezier |
Name |
"Bezier Cubic" |
Order |
3 |
ParameterCount |
4 |
HasVariableOrder |
false |
For an input x from 0 to 1, the output is the y of the point of the cubic Bézier from (0, 0) to (1, 1), with control points (A, B) and (C, D), whose x is x. The curve is found at x with Newton steps kept safe by bisection.
With all four parameters at 0, their default, it is a straight line. A, B, C and D are the four numbers of CSS’s cubic-bezier(): (0.25, 0.1, 0.25, 1) is CSS’s ease. It stays within 0 to 1 and never goes back.
Properties
A →
float · From IOneParameter. The x of the first control point, the one the curve leaves (0, 0) toward. 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 first control point. Clamped to 0 to 1 when set; 0 by default. Throws ArgumentOutOfRangeException for NaN and keeps the value it had.
C →
float · From IThreeParameters. The x of the second control point, the one the curve comes into (1, 1) from. Clamped to 0 to 1 when set; 0 by default. Throws ArgumentOutOfRangeException for NaN and keeps the value it had.
D →
float · From IFourParameters. The y of the second control point. Clamped to 0 to 1 when set; 0 by default. Throws ArgumentOutOfRangeException for NaN and keeps the value it had.
Methods
BezierCubic() →
BezierCubic() · Creates the curve, with its parameters at their defaults. ShapingFunctionFactory.Create creates the same from ShapingFunctionId.BezierCubic.