//! Module for different utilities which are used across other modules or to help the user of the library.
usenum_traits::real::Real;usecore::ops::{Add,Mul};/// 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
}