//! Module for different utilities which are used across other modules or to help the user of the library.
usecore::ops::{Add, Mul};usenum_traits::real::Real;/// Linear interpolation of the two values given.
pubfnlerp<T, R>(first: T, second: T, factor: R)-> T
where
T:Add<Output = T> + Mul<R, Output = T>,
R: Real,
{
first *(R::one()- factor)+ second * factor
}