pub trait Lerp {
    type Scalar;
    fn lerp(&self, other: &Self, scalar: &Self::Scalar) -> Self;
}
Expand description

Describes a type that can linearly interpolate between two points.

Associated Types

The scaling type for linear interpolation.

Required methods

Given self and another point other, return a point on a line running between the two that is scalar fraction of the distance between the two points.

Implementations on Foreign Types

Implementors