fn bezier_curve<TCurve: BezierCurve>(&mut self, curve: &TCurve)
    where TCurve::Point: Coordinate2D {
        let (cp1, cp2)  = curve.control_points();
        let end         = curve.end_point();

        self.bezier_curve_to(end.x() as _, end.y() as _, cp1.x() as _, cp1.y() as _, cp2.x() as _, cp2.y() as _);
    }
///
/// Draws a bezier curve (defined by the BezierCurve trait)
///
Draws a bezier curve (defined by the BezierCurve trait)
Draws a bezier curve ( defined by the BezierCurve trait )
fn bezier_curve<TCurve: BezierCurve>(&mut self, curve: &TCurve)
    where TCurve::Point: Coordinate2D {
        let (cp1, cp2)  = curve.control_points();
        let end         = curve.end_point();
        self.bezier_curve_to(end.x() as _, end.y() as _, cp1.x() as _, cp1.y() as _, cp2.x() as _, cp2.y() as _);
    }
fn bezier_curve < TCurve : BezierCurve > ( & mut self , curve : & TCurve ) where TCurve :: Point : Coordinate2D { let ( cp1 , cp2 ) = curve . control_points ( ) ; let end = curve . end_point ( ) ; self . bezier_curve_to ( end . x ( ) as _ , end . y ( ) as _ , cp1 . x ( ) as _ , cp1 . y ( ) as _ , cp2 . x ( ) as _ , cp2 . y ( ) as _ ) ; }
Draws a bezier curve (defined by the BezierCurve trait)
Draws a bezier curve ( defined by the BezierCurve trait )
&mut self
curve
&TCurve