You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
373 B
32 lines
373 B
package sig.engine;
|
|
|
|
public class Point {
|
|
int x,y;
|
|
|
|
public Point(int x, int y) {
|
|
super();
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
public int getX() {
|
|
return x;
|
|
}
|
|
|
|
public void setX(int x) {
|
|
this.x = x;
|
|
}
|
|
|
|
public int getY() {
|
|
return y;
|
|
}
|
|
|
|
public void setY(int y) {
|
|
this.y = y;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Point(" + x + "," + y + ")";
|
|
}
|
|
}
|
|
|