Lerp
Linear interpolation and iteration, automatically implemented over most float-compatible types.
Just need to know what's halfway between three and five?
use Lerp;
assert_eq!;
Want to iterate across some points in that range?
use LerpIter;
// lerp between 3 and 5, collecting two items
let items: = 3.0_f64.lerp_iter.collect;
assert_eq!;
assert_eq!;
Of course, the real benefit is that it's derivation is broad enough that it also covers types such as num::Complex<T>. If you have an array-processing library, and the arrays are T: Copy + Add<Output = T> + Sub<Output = T> + Mul<F: Float, Output = T>, it'll just work for them as well.
Usage
[]
= "0.1"
Documentation
Coming soon! I've never used Github Pages before.