/// The slope of the tangent line at time t.
The slope of the tangent line at time t.
The slope of the tangent line at time t .
fn slope(&self, t: f32) -> (f32, f32) {
        let tm = 1.0 - t;
        let a = 3.0 * (tm * tm);
        let b = 6.0 * tm * t;
        let c = 3.0 * (t * t);
        let x = a * (self.b.x - self.a.x) + b * (self.c.x - self.b.x) + c * (self.d.x - self.c.x);
        let y = a * (self.b.y - self.a.y) + b * (self.c.y - self.b.y) + c * (self.d.y - self.c.y);
        (x, y)
    }
fn slope ( & self , t : f32 ) -> ( f32 , f32 ) { let tm = 1.0 - t ; let a = 3.0 * ( tm * tm ) ; let b = 6.0 * tm * t ; let c = 3.0 * ( t * t ) ; let x = a * ( self . b . x - self . a . x ) + b * ( self . c . x - self . b . x ) + c * ( self . d . x - self . c . x ) ; let y = a * ( self . b . y - self . a . y ) + b * ( self . c . y - self . b . y ) + c * ( self . d . y - self . c . y ) ; ( x , y ) }
The slope of the tangent line at time t.
The slope of the tangent line at time t .
&self
t
f32