Function vector_space::interpolate

source ·
pub fn interpolate<T>(
    a: T,
    b: T,
    ratio: <<T as Sub>::Output as VectorSpace>::Scalar
) -> T
where T: Sub + Add<<T as Sub>::Output, Output = T> + Copy, <T as Sub>::Output: VectorSpace,
Expand description

The linear interpolation of two points.