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$Float.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.6 KB  |  102 lines

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