/// <summary> /// Draws a quadratic Bezier curve from the current point to (x,y) using (xControl,yControl) as the control point. /// </summary> /// <param name="x1"></param> /// <param name="y1"></param> /// <param name="x2"></param> /// <param name="y2"></param> public void Curve3(double x1, double y1, double x2, double y2) { _latestSVGPathCmd = SvgPathCommand.QuadraticBezierCurve; _c1.x = x1; _c1.y = y1; _myvxs.AddP2c(x1, y1); _myvxs.AddLineTo(_latest_x = x2, _latest_y = y2); }
/// <summary> /// Draws a quadratic Bezier curve from the current point to (x,y) using (xControl,yControl) as the control point. /// </summary> /// <param name="x1"></param> /// <param name="y1"></param> /// <param name="x2"></param> /// <param name="y2"></param> public void Curve3(double x1, double y1, double x2, double y2) { this.latestSVGPathCmd = SvgPathCommand.QuadraticBezierCurve; this.c1.x = x1; this.c1.y = y1; myvxs.AddP2c(x1, y1); myvxs.AddLineTo(this.latest_x = x2, this.latest_y = y2); }
//-------------------------------------------------------------------- /// <summary> /// Draws a quadratic Bezier curve from the current point to (x,y) using (xControl,yControl) as the control point. /// </summary> /// <param name="p2x"></param> /// <param name="p2y"></param> /// <param name="x"></param> /// <param name="y"></param> public void Curve3(double p2x, double p2y, double x, double y) { this.latestSVGPathCmd = SvgPathCommand.QuadraticBezierCurve; this.c3p2.x = p2x; this.c3p2.y = p2y; myvxs.AddP2c(p2x, p2y); myvxs.AddLineTo(this.lastX = x, this.lastY = y); }