Function rerun::demo_util::linspace

source ·
pub fn linspace<T>(
    a: T,
    b: T,
    n: usize
) -> impl Iterator<Item = <<T as Sub<<f32 as Mul<T>>::Output>>::Output as Add<<f32 as Mul<T>>::Output>>::Output>
where T: Copy + Mul<f32> + Sub<<f32 as Mul<T>>::Output>, f32: Mul<T>, <T as Sub<<f32 as Mul<T>>::Output>>::Output: Add<<f32 as Mul<T>>::Output>,
Expand description

Linearly interpolates from a through b in n steps, returning the intermediate result at each step.