lerp

Linearly interpolates between a and b

@safe pure
T
lerp
(
T
)
(
T a
,
T b
,
float t
)

Parameters

a T

The first value to interpolate

b T

The second value to interpolate

t float

The interpolation step from 0..1

Return Value

Type: T

The interpolated value between a and b

Meta