Skip to content

Instantly share code, notes, and snippets.

@gilleain
Created November 23, 2012 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilleain/4136727 to your computer and use it in GitHub Desktop.
Save gilleain/4136727 to your computer and use it in GitHub Desktop.
void plot_line(GraphPoint[] line, int m, int c) {
Point next = new Point(0, c);
while (next.x < line.length) {
line[next.x] = new GraphPoint(next, graphpoint.crosshair);
next.x += 1;
next.y += m;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment