| InterpolationHelperHermiteSmoothStep Method (Double) |
Computes the Hermite smooth step function (double-precision).
Namespace: DigitalRune.Mathematics.InterpolationAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static double HermiteSmoothStep(
double x
)
Public Shared Function HermiteSmoothStep (
x As Double
) As Double
public:
static double HermiteSmoothStep(
double x
)
static member HermiteSmoothStep :
x : float -> float
Parameters
- x
- Type: SystemDouble
The argument x.
Return Value
Type:
DoubleThe function value y.
Remarks
This functions can be visualized as an S-shaped curve based on a Hermite base function:
y = x2 ( 3 - 2x ). (This polynomial is one of the base functions of the cubic
Hermite spline.)
The function value y goes from 0 to 1 as x goes from 0 to 1. y = 0 for x < 0 and y = 1
for x > 1.
See Also