hermiteInterp

Hermite interpolation.

nothrow @nogc pure
T
hermiteInterp
(
T
)
(,
T xm1
,
T x0
,
T x1
,
T x2
)

Parameters

f_pos T

Position of interpolation between (0 to 1). 0 means at position x0, 1 at position x1.

xm1 T

Value of f(x-1)

x0 T

Value of f(x)

x1 T

Value of f(x+1)

x2 T

Value of f(x+2)

Return Value

Type: T

An interpolated value corresponding to f(x0 + f_pos).

Meta