/**
* Created by IntelliJ IDEA.
* User: me
* Date: 11.09.2006
* Time: 15:16:20
* To change this template use File | Settings | File Templates.
*/
public void add
(Point p
) { vertices.add(p);
}
public void remove
(Point p
) { vertices.remove(p);
}
public int numVertices() {
return vertices.size();
}
}
private int x = 0, y = 0;
public Point(int x,
int y
) { 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;
}
}