linear

Linear interpolation.

pure
T
linear
(
SliceKind kind
size_t[] packs
T
P
size_t N
)
(
Slice!(kind, packs, T*) slice
,
P[N] pos...
)
if (
packs.length == 1
)

Parameters

slice
Type: Slice!(kind, packs, T*)

Input slice which values are interpolated.

pos
Type: P[N]

Position on which slice values are interpolated.

Return Value

Type: T

Interpolated resulting value.

Meta