2022-11-28 10:29:34 -06:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2022-11-28 11:48:13 -06:00
|
|
|
public void set(int x,int y) {
|
|
|
|
setX(x);setY(y);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void update(int x,int y) {
|
|
|
|
set(x,y);
|
|
|
|
}
|
|
|
|
|
2022-11-28 10:29:34 -06:00
|
|
|
@Override
|
2022-11-28 11:48:13 -06:00
|
|
|
public java.lang.String toString() {
|
2022-11-28 10:29:34 -06:00
|
|
|
return "Point(" + x + "," + y + ")";
|
|
|
|
}
|
|
|
|
}
|