screenPoints = new Point[getLength()];
points = new TPoint[getLength()];
Position p = new Position(x, y);
points[0] = p;
}
<BUG>public void addSecondPoint(double x, double y) {
</BUG>
Position p = new Position(x, y);
points[1] = p;
<BUG>setWorldCoordinates(worldX0, worldY0, worldX1, worldY1);
}</BUG>
public Position getPosition(int n) {

screenPoints = new Point[getLength()];
points = new TPoint[getLength()];
Position p = new Position(x, y);
points[0] = p;
}
public Position addSecondPoint(double x, double y) {
Position p = new Position(x, y);
points[1] = p;
setWorldCoordinates(worldX0, worldY0, worldX1, worldY1);
return p;
}
public Position getPosition(int n) {
