home *** CD-ROM | disk | FTP | other *** search
/ Independent Newspaper 1999 / cdng1999.iso / ng / Dvoto.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-08-20  |  1.4 KB  |  55 lines

  1. class Dvoto {
  2.    // $FF: renamed from: x double
  3.    public double field_0;
  4.    // $FF: renamed from: y double
  5.    public double field_1;
  6.  
  7.    public Dvoto() {
  8.       this((double)0.0F, (double)0.0F);
  9.    }
  10.  
  11.    public Dvoto(Dvoto var1) {
  12.       this(var1.field_0, var1.field_1);
  13.    }
  14.  
  15.    public Dvoto(double var1, double var3) {
  16.       this.field_0 = var1;
  17.       this.field_1 = var3;
  18.    }
  19.  
  20.    public Dvoto getLocation() {
  21.       return new Dvoto(this.field_0, this.field_1);
  22.    }
  23.  
  24.    public void setLocation(Dvoto var1) {
  25.       this.setLocation(var1.field_0, var1.field_1);
  26.    }
  27.  
  28.    public void setLocation(double var1, double var3) {
  29.       this.move(var1, var3);
  30.    }
  31.  
  32.    public void move(double var1, double var3) {
  33.       this.field_0 = var1;
  34.       this.field_1 = var3;
  35.    }
  36.  
  37.    public void translate(double var1, double var3) {
  38.       this.field_0 += var1;
  39.       this.field_1 += var3;
  40.    }
  41.  
  42.    public boolean equals(Object var1) {
  43.       if (var1 instanceof Dvoto) {
  44.          Dvoto var2 = (Dvoto)var1;
  45.          return this.field_0 == var2.field_0 && this.field_1 == var2.field_1;
  46.       } else {
  47.          return false;
  48.       }
  49.    }
  50.  
  51.    public String toString() {
  52.       return this.getClass().getName() + "[x=" + this.field_0 + ",y=" + this.field_1 + "]";
  53.    }
  54. }
  55.