| InterpolationHelperHermiteSmoothStep Method (Single) |
Computes the Hermite smooth step function (single-precision).
Namespace: DigitalRune.Mathematics.InterpolationAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static float HermiteSmoothStep(
float x
)
Public Shared Function HermiteSmoothStep (
x As Single
) As Single
public:
static float HermiteSmoothStep(
float x
)
static member HermiteSmoothStep :
x : float32 -> float32
Parameters
- x
- Type: SystemSingle
The argument x.
Return Value
Type:
SingleThe 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