public void graph_line(Point start, Point end) { var resolution = 2000; var x_increment = (end.X - start.X) / resolution; var y_increment = (end.Y - start.Y) / resolution; plotter.start_path(); foreach (var interval in Enumerable.Range(0, resolution)) { var segment_start = new Point(start.X + x_increment * interval, start.Y + y_increment * interval).convert_to_cartesian(); var segment_end = new Point(start.X + x_increment * (interval + 1), start.Y + y_increment * (interval + 1)).convert_to_cartesian(); plotter.plot(segment_start, segment_end); } plotter.end_path(); }
public void graph_line(Point start, Point end) { plotter.start_path(); plotter.plot(start, end); plotter.end_path(); }
public void end_path() { base_plotter.end_path(); }