Trait Lerp

Source
pub trait Lerp:
    Sized
    + Mul<f32, Output = Self>
    + Add<Self, Output = Self> {
    // Provided method
    fn lerp(min: Self, max: Self, factor: f32) -> Self { ... }
}
Expand description

Linearly interpolate between two values.

Provided Methods§

Source

fn lerp(min: Self, max: Self, factor: f32) -> Self

Linearly interpolate between two values.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Lerp for f32

Implementors§