Function ambient_api::global::lerp
source · pub fn lerp<T>(a: T, b: T, t: f32) -> <<T as Mul<f32>>::Output as Add>::Output
Expand description
Lerp (linear-interpolate) between any two values that support addition and multiplication.
Note that there may be better domain-specific ways to lerp between values, especially for quaternions and colors.