lerp 0.5.0

Generic linear interpolation and extrapolation, automatically implemented for a variety of numeric types.
Documentation
1
2
3
4
5
6
use std::fmt::Debug;

// Helper when working with floats to "round" them, so we can compare them better
pub fn round(d: &dyn Debug) -> String {
    format!("{:.1?}", d)
}