euv_engine/math/trait.rs
1/// A trait for types that support linear interpolation between two values.
2pub trait Interpolable {
3 /// Performs linear interpolation between `self` and `other` by the factor `t`.
4 ///
5 /// # Arguments
6 ///
7 /// - `f64` - The interpolation factor, typically in the range 0.0 to 1.0.
8 /// - `Self` - The target value to interpolate towards.
9 ///
10 /// # Returns
11 ///
12 /// - `Self` - The interpolated result.
13 fn lerp(&self, other: Self, t: f64) -> Self;
14}