fn lerp_set(&mut self, interp_point: f64) {
        // Precise method, which guarantees v = v1 when t = 1.
        let interp_method =
            |v0: &Array3d, v1: &Array3d, t: f64| -> Array3d { ((1f64 - t) * v0) + (t * v1) };

        self.current_coords = interp_method(&self.behind_coords, &self.ahead_coords, interp_point);
    }
/// Calculate linear interpolation of behind and ahead time at interp_point.
/// Sets the current coords to the result.
///
/// ### Arguments
/// * 'interp_point' - Point between 0-1 where the interp is set
///
Calculate linear interpolation of behind and ahead time at interp_point.
Sets the current coords to the result.
Calculate linear interpolation of behind and ahead time at interp_point . Sets the current coords to the result .
fn lerp_set(&mut self, interp_point: f64) {
        // Precise method, which guarantees v = v1 when t = 1.
        let interp_method =
            |v0: &Array3d, v1: &Array3d, t: f64| -> Array3d { ((1f64 - t) * v0) + (t * v1) };
        self.current_coords = interp_method(&self.behind_coords, &self.ahead_coords, interp_point);
    }
fn lerp_set ( & mut self , interp_point : f64 ) { // Precise method, which guarantees v = v1 when t = 1. let interp_method = | v0 : & Array3d , v1 : & Array3d , t : f64 | -> Array3d { ( ( 1f64 - t ) * v0 ) + ( t * v1 ) } ; self . current_coords = interp_method ( & self . behind_coords , & self . ahead_coords , interp_point ) ; }
Calculate linear interpolation of behind and ahead time at interp_point.
Calculate linear interpolation of behind and ahead time at interp_point .
&mut self
interp_point
f64