Function interpLinear

Linear interpolation

T interpLinear(T) (
  T a,
  T b,
  float t
);

Example

assert(lerp(0.0f, 2.0f, 0.5f) == 1.0f);