pub fn lerp(x: f32, a: f32, b: f32) -> f32
Expand description

Apply linear interpolation between the value a and b.

  • a - value at x=0.0
  • b - value at x=1.0
  • x - value between 0.0 and 1.0 to blend between a and b.