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