Vector.lerp

Linear interpolates vector

struct Vector(T, size_t N)
static if(isFloatingPoint!T)
lerp
(,
double weight
)
if (
isNumeric!T &&
N > 0
)

Parameters

to VecType

Vector to interpolate to

weight double

Interpolation weight in range [0.0, 1.0]

Meta