fn slope(&self, t: f32) -> (f32, f32) {
        let tm = 1.0 - t;
        let a = 2.0 * tm;
        let b = 2.0 * t;

        let x = a * (self.b.x - self.a.x) + b * (self.c.x - self.b.x);
        let y = a * (self.b.y - self.a.y) + b * (self.c.y - self.b.y);
        (x, y)
    }
/// 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 = 2.0 * tm;
        let b = 2.0 * t;
        let x = a * (self.b.x - self.a.x) + b * (self.c.x - self.b.x);
        let y = a * (self.b.y - self.a.y) + b * (self.c.y - self.b.y);
        (x, y)
    }
fn slope ( & self , t : f32 ) -> ( f32 , f32 ) { let tm = 1.0 - t ; let a = 2.0 * tm ; let b = 2.0 * t ; let x = a * ( self . b . x - self . a . x ) + b * ( self . c . x - self . b . x ) ; let y = a * ( self . b . y - self . a . y ) + b * ( self . c . y - self . b . y ) ; ( x , y ) }
The slope of the tangent line at time t.
The slope of the tangent line at time t .
&self
t
f32
&self
t
f32