pub trait Lerp { fn lerp(&self, other: &Self, scalar: f32) -> Self; }
Describes a trait that can be linearly interpolate between two points.
Get a value between self and other at a scalar.
self
other
scalar
0.0 <= scalar <= 1