Function radiant_rs::utils::approach
[−]
[src]
pub fn approach<T, S>(source_value: &mut T, target_value: &T, rate_of_change: S) where
T: Add + Mul<S> + From<<<T as Mul<S>>::Output as Add>::Output> + Copy,
S: Float,
<T as Mul<S>>::Output: Add,
Mutates source_value to approach target_value at the rate_of_change. Effectively a lerp that writes to source.