FileDocCategorySizeDatePackage
TwoDPoint.javaAPI DocExample345Mon Feb 13 12:14:02 GMT 2006None

TwoDPoint.java

public class TwoDPoint {
  private double x;
  private double y;

  public TwoDPoint(double x, double y) {
    this.x = x;
    this.y = y;
  }

  public double getX() {
    return x;
  }

  public double getY() {
    return y;
  }
  
  public String toString() {
    return "[TwoDPoint:x=" + this.x + ", y=" + y +"]";
  }
}