Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub fn lerp<T,Ratio,Diff>((start,end):(T,T), fraction:Ratio)->T
- where
- T:Copy,
- T:Sub<T,Output=Diff>,
- T:Madd<Diff,Ratio>,
- Diff:Mul<Ratio>+Copy
- {
- start.madd(end-start,fraction)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement