pub trait Lerp { type Scalar; fn lerp(&self, other: &Self, scalar: &Self::Scalar) -> Self; }
Describes a type that can linearly interpolate between two points.
The scaling type for linear interpolation.
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.
self
other
scalar