Elementary.SmoothStep Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

SmoothStep(Double) Returns the Smoothstep function.
SmoothStep(Double, Double, Double) Returns the Smoothstep function.

SmoothStep(Double)

Returns the Smoothstep function.
C#
public static double SmoothStep(
	double x
)

Parameters

x  Double
A real number.

Return Value

Double
1 if x is greater than or equal to 0; otherwise 0.

SmoothStep(Double, Double, Double)

Returns the Smoothstep function.
C#
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

Double
0 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.

See Also