Last active
July 21, 2016 15:45
-
-
Save tkfx/8aff12d54c989cf2de92281cccaeab3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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