//-------------------------------------------------------------------- public void MoveTo(double x0, double y0) { _latestSVGPathCmd = SvgPathCommand.MoveTo; _myvxs.AddMoveTo( _latest_moveTo_X = _latest_x = x0, _latest_moveTo_Y = _latest_y = y0); }
/// <summary> /// Draws a quadratic Bezier curve from the current point to (x,y) using (xControl,yControl) as the control point. /// </summary> /// <param name="dx1"></param> /// <param name="dy1"></param> /// <param name="dx2"></param> /// <param name="dy2"></param> public void Curve3Rel(double dx1, double dy1, double dx2, double dy2) { _latestSVGPathCmd = SvgPathCommand.QuadraticBezierCurve; _myvxs.AddC3To( _c1.x = _latest_x + dx1, _c1.y = _latest_y + dy1, _latest_x += dx2, _latest_y += dy2); }
/// <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; _myvxs.AddC3To( _c1.x = x1, _c1.y = y1, _latest_x = x2, _latest_y = y2); }
//-------------------------------------------------------------------- public void MoveTo(double x0, double y0) { this.latestSVGPathCmd = SvgPathCommand.MoveTo; myvxs.AddMoveTo( this.latest_moveTo_X = this.latest_x = x0, this.latest_moveTo_Y = this.latest_y = y0); }
public void LineToRel(double x, double y) { this.latestSVGPathCmd = SvgPathCommand.LineTo; myvxs.AddLineTo( this.lastX += x, this.lastY += y); }
public void MoveToRel(double x, double y) { this.latestSVGPathCmd = SvgPathCommand.MoveTo; myvxs.AddMoveTo( this.lastMoveX = (this.lastX += x), this.lastMoveY = (this.lastY += y)); }
//-------------------------------------------------------------------- public void MoveTo(double x, double y) { this.latestSVGPathCmd = SvgPathCommand.MoveTo; myvxs.AddMoveTo( this.lastMoveX = this.lastX = x, this.lastMoveY = this.lastY = y); }
public void MoveToRel(double dx0, double dy0) { //*** move to, relative to last(x,y) *** _latestSVGPathCmd = SvgPathCommand.MoveTo; _myvxs.AddMoveTo( _latest_moveTo_X = (_latest_x += dx0), _latest_moveTo_Y = (_latest_y += dy0)); }
public void LineToRel(double dx1, double dy1) { //*** line to to, relative to last(x,y) *** _latestSVGPathCmd = SvgPathCommand.LineTo; _myvxs.AddLineTo( _latest_x += dx1, _latest_y += dy1); }
/// <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="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="dx1"></param> /// <param name="dy1"></param> /// <param name="dx2"></param> /// <param name="dy2"></param> public void Curve3Rel(double dx1, double dy1, double dx2, double dy2) { this.latestSVGPathCmd = SvgPathCommand.QuadraticBezierCurve; this.c1.x = this.latest_x + dx1; this.c1.y = this.latest_y + dy1; myvxs.AddP2c(this.latest_x + dx1, this.latest_y + dy1); myvxs.AddLineTo(this.latest_x += dx2, this.latest_y += dy2); }
/// <summary> /// Draws a quadratic Bezier curve from the current point to (x,y) using (xControl,yControl) as the control point. /// </summary> /// <param name="xControl"></param> /// <param name="yControl"></param> /// <param name="x"></param> /// <param name="y"></param> public void Curve3Rel(double p2x, double p2y, double x, double y) { this.latestSVGPathCmd = SvgPathCommand.QuadraticBezierCurve; this.c3p2.x = this.lastX + p2x; this.c3p2.y = this.lastY + p2y; myvxs.AddP2c(this.lastX + p2x, this.lastY + p2y); myvxs.AddLineTo(this.lastX += x, this.lastY += y); }
public void Curve4Rel(double p2x, double p2y, double p3x, double p3y, double x, double y) { this.latestSVGPathCmd = SvgPathCommand.CurveTo; myvxs.AddP3c(this.lastX + p2x, this.lastY + p2y); myvxs.AddP3c(this.lastX + p3x, this.lastY + p3y); myvxs.AddLineTo(this.lastX += x, this.lastY += y); }
//----------------------------------------------------------------------- public void Curve4(double x1, double y1, double x2, double y2, double x3, double y3) { this.latestSVGPathCmd = SvgPathCommand.CurveTo; myvxs.AddP3c(x1, y1); myvxs.AddP3c(x2, y2); myvxs.AddLineTo(this.latest_x = x3, this.latest_y = y3); }
//----------------------------------------------------------------------- public void Curve4(double p2x, double p2y, double p3x, double p3y, double x, double y) { this.latestSVGPathCmd = SvgPathCommand.CurveTo; myvxs.AddP3c(p2x, p2y); myvxs.AddP3c(p3x, p3y); myvxs.AddLineTo(this.lastX = x, this.lastY = y); }
public void Curve4Rel(double dx1, double dy1, double dx2, double dy2, double dx3, double dy3) { this.latestSVGPathCmd = SvgPathCommand.CurveTo; myvxs.AddP3c(this.latest_x + dx1, this.latest_y + dy1); myvxs.AddP3c(this.latest_x + dx2, this.latest_y + dy2); myvxs.AddLineTo(this.latest_x += dx3, this.latest_y += dy3); }
public void UnbindVxs() { _myvxs = null; _latest_moveTo_X = _latest_moveTo_Y = _latest_x = _latest_y = 0; _c1 = new Vector2(); _c2 = new Vector2(); _latestSVGPathCmd = SvgPathCommand.MoveTo; _figureCount = 0; }
public void Clear() { myvxs.Clear(); lastMoveX = lastMoveY = lastX = lastY = 0; c3p2 = new Vector2(); c4p3 = new Vector2(); latestSVGPathCmd = SvgPathCommand.MoveTo; figureCount = 0; }
public void Clear() { myvxs.Clear(); latest_moveTo_X = latest_moveTo_Y = latest_x = latest_y = 0; c1 = new Vector2(); c2 = new Vector2(); latestSVGPathCmd = SvgPathCommand.MoveTo; figureCount = 0; }
//----------------------------------------------------------------------- public void Curve4(double x1, double y1, double x2, double y2, double x3, double y3) { _latestSVGPathCmd = SvgPathCommand.CurveTo; _myvxs.AddP3c(x1, y1); _myvxs.AddP3c(x2, y2); _c2 = new Vector2(x2, y2); _myvxs.AddLineTo(_latest_x = x3, _latest_y = y3); }
public void Curve4Rel(double dx1, double dy1, double dx2, double dy2, double dx3, double dy3) { _latestSVGPathCmd = SvgPathCommand.CurveTo; _myvxs.AddP3c(_latest_x + dx1, _latest_y + dy1); _myvxs.AddP3c(_latest_x + dx2, _latest_y + dy2); _c2 = new Vector2(_latest_x + dx2, _latest_y + dy2); _myvxs.AddLineTo(_latest_x += dx3, _latest_y += dy3); }
public void Clear() { if (_myvxs != null) { _myvxs.Clear(); } _latest_moveTo_X = _latest_moveTo_Y = _latest_x = _latest_y = 0; _c1 = new Vector2(); _c2 = new Vector2(); _latestSVGPathCmd = SvgPathCommand.MoveTo; _figureCount = 0; }
public void MoveTo(double x0, double y0) { if (_latest_moveTo_X != x0 || _latest_moveTo_Y != y0) { _latestSVGPathCmd = SvgPathCommand.MoveTo; _myvxs.AddMoveTo( _latest_moveTo_X = _latest_x = x0, _latest_moveTo_Y = _latest_y = y0); } else if (_myvxs.Count == 0) { _myvxs.AddMoveTo( _latest_moveTo_X = _latest_x = x0, _latest_moveTo_Y = _latest_y = y0); } }
//-------------------------------------------------------------------- public void MoveTo(double x, double y) { this.latestSVGPathCmd = SvgPathCommand.MoveTo; myvxs.AddMoveTo( this.lastMoveX = this.lastX = x, this.lastMoveY = this.lastY = y); }
//----------------------------------------------------------------------- public void Curve4(double p2x, double p2y, double p3x, double p3y, double x, double y) { this.latestSVGPathCmd = SvgPathCommand.CurveTo; myvxs.AddP3c(p2x, p2y); myvxs.AddP3c(p3x, p3y); myvxs.AddLineTo(this.lastX = x, this.lastY = y); }
public void VerticalLineTo(double y1) { _latestSVGPathCmd = SvgPathCommand.VerticalLineTo; _myvxs.AddLineTo(_latest_x, _latest_y = y1); }
public void VerticalLineToRel(double dy1) { //relative *** _latestSVGPathCmd = SvgPathCommand.VerticalLineTo; _myvxs.AddLineTo(_latest_x, _latest_y += dy1); }
public void HorizontalLineTo(double x1) { _latestSVGPathCmd = SvgPathCommand.HorizontalLineTo; _myvxs.AddLineTo(_latest_x = x1, _latest_y); }
public void HorizontalLineToRel(double dx1) { //relative *** _latestSVGPathCmd = SvgPathCommand.HorizontalLineTo; _myvxs.AddLineTo(_latest_x += dx1, _latest_y); }
public void LineTo(double x1, double y1) { _latestSVGPathCmd = SvgPathCommand.LineTo; _myvxs.AddLineTo(_latest_x = x1, _latest_y = y1); }
public void MoveToRel(double x, double y) { this.latestSVGPathCmd = SvgPathCommand.MoveTo; myvxs.AddMoveTo( this.lastMoveX = (this.lastX += x), this.lastMoveY = (this.lastY += y)); }
public void HorizontalLineToRel(double x) { this.latestSVGPathCmd = SvgPathCommand.HorizontalLineTo; myvxs.AddLineTo(this.lastX += x, lastY); }
public void LineToRel(double x, double y) { this.latestSVGPathCmd = SvgPathCommand.LineTo; myvxs.AddLineTo( this.lastX += x, this.lastY += y); }
public void VerticalLineToRel(double y) { this.latestSVGPathCmd = SvgPathCommand.VerticalLineTo; myvxs.AddLineTo(lastX, this.lastY += y); }
/// <summary> /// Draws a quadratic Bezier curve from the current point to (x,y) using (xControl,yControl) as the control point. /// </summary> /// <param name="xControl"></param> /// <param name="yControl"></param> /// <param name="x"></param> /// <param name="y"></param> public void Curve3Rel(double p2x, double p2y, double x, double y) { this.latestSVGPathCmd = SvgPathCommand.QuadraticBezierCurve; this.c3p2.x = this.lastX + p2x; this.c3p2.y = this.lastY + p2y; myvxs.AddP2c(this.lastX + p2x, this.lastY + p2y); myvxs.AddLineTo(this.lastX += x, this.lastY += y); }
public void Curve4Rel(double p2x, double p2y, double p3x, double p3y, double x, double y) { this.latestSVGPathCmd = SvgPathCommand.CurveTo; myvxs.AddP3c(this.lastX + p2x, this.lastY + p2y); myvxs.AddP3c(this.lastX + p3x, this.lastY + p3y); myvxs.AddLineTo(this.lastX += x, this.lastY += y); }
public void Clear() { myvxs.Clear(); lastMoveX = lastMoveY = lastX = lastY = 0; c3p2 = new Vector2(); c4p3 = new Vector2(); latestSVGPathCmd = SvgPathCommand.MoveTo; figureCount = 0; }
public void VerticalLineTo(double y1) { this.latestSVGPathCmd = SvgPathCommand.VerticalLineTo; myvxs.AddLineTo(latest_x, this.latest_y = y1); }