euv-engine 0.9.1

A high-performance 2D game engine built on the euv framework, featuring ECS, fixed-timestep game loop, canvas rendering, physics, collision detection, sprite animation, and audio.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// A trait for types that support linear interpolation between two values.
pub trait Interpolable {
    /// Performs linear interpolation between `self` and `other` by the factor `t`.
    ///
    /// # Arguments
    ///
    /// - `f64` - The interpolation factor, typically in the range 0.0 to 1.0.
    /// - `Self` - The target value to interpolate towards.
    ///
    /// # Returns
    ///
    /// - `Self` - The interpolated result.
    fn lerp(&self, other: Self, t: f64) -> Self;
}