pub trait Interpolate<F>: Sized where
F: Float, {
fn lerp(&self, other: &Self, f: F) -> Self;
fn midpoint(&self, other: &Self) -> Self { ... }
}
Required Methods
fn lerp(&self, other: &Self, f: F) -> Self
Provided Methods
fn midpoint(&self, other: &Self) -> Self
Implementors
impl<T, F> Interpolate<F> for (T, T) where
T: Scalar + SupersetOf<F>,
F: Float + SupersetOf<T>,
impl<T, F> Interpolate<F> for (T, T, T) where
T: Scalar + SupersetOf<F>,
F: Float + SupersetOf<T>,
impl<T, F> Interpolate<F> for Point2<T> where
T: Scalar + SupersetOf<F>,
F: Float + SupersetOf<T>,
impl<T, F> Interpolate<F> for Point3<T> where
T: Scalar + SupersetOf<F>,
F: Float + SupersetOf<T>,