#[derive(Clone, Copy, Debug, PartialEq)]
pub struct AnimValue(pub [f32; 4]);
impl AnimValue {
pub fn lerp(self, other: Self, t: f32) -> Self {
let mut out = [0.0; 4];
for ((out, a), b) in out.iter_mut().zip(self.0.iter()).zip(other.0.iter()) {
*out = *a + (*b - *a) * t;
}
Self(out)
}
}