Function ludomath::num::lerp
[−]
[src]
pub fn lerp(start: f32, end: f32, t: f32) -> f32
Linearly interpolates from start
to end
by t
.
t
< 0 or t
> 1 gives results outside [start
, end
].