pub trait Lerp: Bounded + NumCast {
type Ratio: Primitive;
// Provided method
fn lerp(a: Self, b: Self, ratio: Self::Ratio) -> Self { ... }
}
Expand description
Linear interpolation without involving floating numbers.
pub trait Lerp: Bounded + NumCast {
type Ratio: Primitive;
// Provided method
fn lerp(a: Self, b: Self, ratio: Self::Ratio) -> Self { ... }
}
Linear interpolation without involving floating numbers.