home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / awt / geom / CubicCurve2D$Double.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.5 KB  |  91 lines

  1. package java.awt.geom;
  2.  
  3. public class CubicCurve2D$Double extends CubicCurve2D {
  4.    // $FF: renamed from: x1 double
  5.    public double field_0;
  6.    // $FF: renamed from: y1 double
  7.    public double field_1;
  8.    public double ctrlx1;
  9.    public double ctrly1;
  10.    public double ctrlx2;
  11.    public double ctrly2;
  12.    // $FF: renamed from: x2 double
  13.    public double field_2;
  14.    // $FF: renamed from: y2 double
  15.    public double field_3;
  16.  
  17.    public CubicCurve2D$Double() {
  18.    }
  19.  
  20.    public CubicCurve2D$Double(double var1, double var3, double var5, double var7, double var9, double var11, double var13, double var15) {
  21.       this.setCurve(var1, var3, var5, var7, var9, var11, var13, var15);
  22.    }
  23.  
  24.    public double getX1() {
  25.       return this.field_0;
  26.    }
  27.  
  28.    public double getY1() {
  29.       return this.field_1;
  30.    }
  31.  
  32.    public Point2D getP1() {
  33.       return new Point2D.Double(this.field_0, this.field_1);
  34.    }
  35.  
  36.    public double getCtrlX1() {
  37.       return this.ctrlx1;
  38.    }
  39.  
  40.    public double getCtrlY1() {
  41.       return this.ctrly1;
  42.    }
  43.  
  44.    public Point2D getCtrlP1() {
  45.       return new Point2D.Double(this.ctrlx1, this.ctrly1);
  46.    }
  47.  
  48.    public double getCtrlX2() {
  49.       return this.ctrlx2;
  50.    }
  51.  
  52.    public double getCtrlY2() {
  53.       return this.ctrly2;
  54.    }
  55.  
  56.    public Point2D getCtrlP2() {
  57.       return new Point2D.Double(this.ctrlx2, this.ctrly2);
  58.    }
  59.  
  60.    public double getX2() {
  61.       return this.field_2;
  62.    }
  63.  
  64.    public double getY2() {
  65.       return this.field_3;
  66.    }
  67.  
  68.    public Point2D getP2() {
  69.       return new Point2D.Double(this.field_2, this.field_3);
  70.    }
  71.  
  72.    public void setCurve(double var1, double var3, double var5, double var7, double var9, double var11, double var13, double var15) {
  73.       this.field_0 = var1;
  74.       this.field_1 = var3;
  75.       this.ctrlx1 = var5;
  76.       this.ctrly1 = var7;
  77.       this.ctrlx2 = var9;
  78.       this.ctrly2 = var11;
  79.       this.field_2 = var13;
  80.       this.field_3 = var15;
  81.    }
  82.  
  83.    public Rectangle2D getBounds2D() {
  84.       double var1 = Math.min(Math.min(this.field_0, this.field_2), Math.min(this.ctrlx1, this.ctrlx2));
  85.       double var3 = Math.min(Math.min(this.field_1, this.field_3), Math.min(this.ctrly1, this.ctrly2));
  86.       double var5 = Math.max(Math.max(this.field_0, this.field_2), Math.max(this.ctrlx1, this.ctrlx2));
  87.       double var7 = Math.max(Math.max(this.field_1, this.field_3), Math.max(this.ctrly1, this.ctrly2));
  88.       return new Rectangle2D.Double(var1, var3, var5 - var1, var7 - var3);
  89.    }
  90. }
  91.