public void Draw(IDrawer d) { IPoint p = new Point(); IPoint p1 = new Point(); p = curveGetPoint(0); d.DrawFinishPoint(p); for (double i = 0; i < 1; i += 0.02) { p = curveGetPoint(i); p1 = curveGetPoint(i + 0.01); d.DrawIntermediatePoints(p, p1); } p = curveGetPoint(1); d.DrawFinishPoint(p); }
public void Draw(IDrawer d) { d.DrawStartPoint(curveGetPoint(0)); for (double i = 1; i < n; ++i) { d.DrawIntermediatePoints(curveGetPoint(i / n), curveGetPoint((i + 1) / n)); } d.DrawFinishPoint(curveGetPoint(1)); }
public void DrawFinishPoint(IPoint p) { d.DrawFinishPoint(p); }