Elementary.Smooth Step Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Smooth | Returns the Smoothstep function. |
Smooth | Returns the Smoothstep function. |
SmoothStep(Double)
Returns the Smoothstep function.
public static double SmoothStep(
double x
)
Parameters
- x Double
- A real number.
Return Value
Double1 if x is greater than or equal to 0; otherwise 0.
SmoothStep(Double, Double, Double)
Returns the Smoothstep function.
public static double SmoothStep(
double x,
double left,
double right
)
Parameters
- x Double
- A real number.
- left Double
- The largest value for which the function returns zero.
- right Double
- The smallest value for which the function returns one.
Return Value
Double0 if x is greater than or equal to left; 1 if x is greater than or equal to right; otherwise a smooth interpolated value between 0 and 1.