Skip to content

Commit b4dc467

Browse files
author
AlaBuck
authored
Update APLine.java
1 parent 76db67d commit b4dc467

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/APLine.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
public class APLine
22
{
3-
private int A1,B1,C1;
4-
public APLine(int a, int b, int c){
5-
int A1 = a;
6-
int B1 = b;
7-
int C1 = c;
3+
private int a,b,c;
4+
public APLine(int a1, int b1, int c1){
5+
int a = a1;
6+
int b = b1;
7+
int c = c1;
88
}
99
public double getSlope(){
10-
return -(double)A1/B1;
10+
return -(double)a/b;
1111
}
1212
public boolean isOnLine(int x, int y){
13-
return (A1*x+B1*y+C1 == 0);
13+
return (a*x+b*y+c == 0);
1414
}
1515
}

0 commit comments

Comments
 (0)