pub fn lerp_scalar<T: Number>(x: T, y: T, a: T) -> T
Returns x * (1.0 - a) + y * a, i.e., the linear blend of the scalars x and y using the scalar value a.
x * (1.0 - a) + y * a
The value for a is not restricted to the range [0, 1]. This is an alias for mix_scalar.
[0, 1]
mix_scalar
assert_eq!(glm::lerp_scalar(2.0, 20.0, 0.1), 3.8);
lerp
lerp_vec