/* A simple class to hold a point. */ class Point { private float x; private float y; public Point(float x_, float y_) { x = x_; y = y_; } public Point() { x = 0.0f; y = 0.0f; } public float getX() { return x; } public float getY() { return y; } public void setX(float x_) { x = x_; } public void setY(float y_) { y = y_; } public Point copy() { return new Point(x, y); } }