pub fn tween( a: f64, a_unit: &str, b: f64, b_unit: &str, t: f64, ) -> Result<f64, String>
Linear tween of two same-unit scalars. t is clamped to [0, 1].
t
[0, 1]