/// Linearly interpolate between two points by the factor
/// `t`. When `t` is zero the result is `self`, and when `t` is
/// one the result is `p`. The range of `t` is not clamped.
Linearly interpolate between two points by the factor
`t`.
Linearly interpolate between two points by the factor ` t ` .
pub fn lerp(self, p: Vec3f, t: f32) -> Vec3f {
        let n = 1.0 - t;
        Vec3f::new(self.x * n + p.x * t,
                   self.y * n + p.y * t,
                   self.z * n + p.z * t)
    }
pub fn lerp ( self , p : Vec3f , t : f32 ) -> Vec3f { let n = 1.0 - t ; Vec3f :: new ( self . x * n + p . x * t , self . y * n + p . y * t , self . z * n + p . z * t ) }
Linearly interpolate between two points by the factor
`t`.
Linearly interpolate between two points by the factor ` t ` .
self
p
Vec3f
t
f32