Skip to content

Instantly share code, notes, and snippets.

@tkfx
Last active July 21, 2016 15:45
Show Gist options
  • Save tkfx/8aff12d54c989cf2de92281cccaeab3c to your computer and use it in GitHub Desktop.
Save tkfx/8aff12d54c989cf2de92281cccaeab3c to your computer and use it in GitHub Desktop.
private static void calcLine(int a, int b, int from, int to) {
Line l = new Line(a, b);
for (int x = from; x <= to; x++) {
int y = (l.a * x + l.b);
System.err.println("(" + x + ", " + y + ")");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment