home *** CD-ROM | disk | FTP | other *** search
- package java.awt.geom;
-
- public class CubicCurve2D$Double extends CubicCurve2D {
- // $FF: renamed from: x1 double
- public double field_0;
- // $FF: renamed from: y1 double
- public double field_1;
- public double ctrlx1;
- public double ctrly1;
- public double ctrlx2;
- public double ctrly2;
- // $FF: renamed from: x2 double
- public double field_2;
- // $FF: renamed from: y2 double
- public double field_3;
-
- public CubicCurve2D$Double() {
- }
-
- public CubicCurve2D$Double(double var1, double var3, double var5, double var7, double var9, double var11, double var13, double var15) {
- this.setCurve(var1, var3, var5, var7, var9, var11, var13, var15);
- }
-
- public double getX1() {
- return this.field_0;
- }
-
- public double getY1() {
- return this.field_1;
- }
-
- public Point2D getP1() {
- return new Point2D.Double(this.field_0, this.field_1);
- }
-
- public double getCtrlX1() {
- return this.ctrlx1;
- }
-
- public double getCtrlY1() {
- return this.ctrly1;
- }
-
- public Point2D getCtrlP1() {
- return new Point2D.Double(this.ctrlx1, this.ctrly1);
- }
-
- public double getCtrlX2() {
- return this.ctrlx2;
- }
-
- public double getCtrlY2() {
- return this.ctrly2;
- }
-
- public Point2D getCtrlP2() {
- return new Point2D.Double(this.ctrlx2, this.ctrly2);
- }
-
- public double getX2() {
- return this.field_2;
- }
-
- public double getY2() {
- return this.field_3;
- }
-
- public Point2D getP2() {
- return new Point2D.Double(this.field_2, this.field_3);
- }
-
- public void setCurve(double var1, double var3, double var5, double var7, double var9, double var11, double var13, double var15) {
- this.field_0 = var1;
- this.field_1 = var3;
- this.ctrlx1 = var5;
- this.ctrly1 = var7;
- this.ctrlx2 = var9;
- this.ctrly2 = var11;
- this.field_2 = var13;
- this.field_3 = var15;
- }
-
- public Rectangle2D getBounds2D() {
- double var1 = Math.min(Math.min(this.field_0, this.field_2), Math.min(this.ctrlx1, this.ctrlx2));
- double var3 = Math.min(Math.min(this.field_1, this.field_3), Math.min(this.ctrly1, this.ctrly2));
- double var5 = Math.max(Math.max(this.field_0, this.field_2), Math.max(this.ctrlx1, this.ctrlx2));
- double var7 = Math.max(Math.max(this.field_1, this.field_3), Math.max(this.ctrly1, this.ctrly2));
- return new Rectangle2D.Double(var1, var3, var5 - var1, var7 - var3);
- }
- }
-