/* Class265 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class Class265
{
    Class275[] aClass275Array4056 = new Class275[4];
    float aFloat4057;
    float[] aFloatArray4058;
    
    void method5163() {
	((Class265) this).aFloat4057 = -1.0F;
	((Class265) this).aFloatArray4058 = null;
    }
    
    void method5164() {
	((Class265) this).aFloat4057 = -1.0F;
	((Class265) this).aFloatArray4058 = null;
    }
    
    double[] method5165(float f) {
	double[] ds = new double[3];
	float f_0_ = f * f;
	float f_1_ = f_0_ * f;
	double d
	    = (double) (3.0F
			* (((Class265) this).aClass275Array4056[1].aFloat4140
			   - (((Class265) this).aClass275Array4056[0]
			      .aFloat4140)));
	double d_2_
	    = ((double) (3.0F
			 * (((Class265) this).aClass275Array4056[2].aFloat4140
			    - (((Class265) this).aClass275Array4056[1]
			       .aFloat4140)))
	       - d);
	double d_3_
	    = ((double) (((Class265) this).aClass275Array4056[3].aFloat4140
			 - ((Class265) this).aClass275Array4056[0].aFloat4140)
	       - d - d_2_);
	ds[0]
	    = (d_3_ * (double) f_1_ + d_2_ * (double) f_0_ + d * (double) f
	       + (double) ((Class265) this).aClass275Array4056[0].aFloat4140);
	d = (double) (3.0F
		      * (((Class265) this).aClass275Array4056[1].aFloat4138
			 - (((Class265) this).aClass275Array4056[0]
			    .aFloat4138)));
	d_2_ = (double) (3.0F
			 * (((Class265) this).aClass275Array4056[2].aFloat4138
			    - (((Class265) this).aClass275Array4056[1]
			       .aFloat4138))) - d;
	d_3_ = ((double) (((Class265) this).aClass275Array4056[3].aFloat4138
			  - ((Class265) this).aClass275Array4056[0].aFloat4138)
		- d - d_2_);
	ds[1]
	    = (d_3_ * (double) f_1_ + d_2_ * (double) f_0_ + d * (double) f
	       + (double) ((Class265) this).aClass275Array4056[0].aFloat4138);
	d = (double) (3.0F
		      * (((Class265) this).aClass275Array4056[1].aFloat4135
			 - (((Class265) this).aClass275Array4056[0]
			    .aFloat4135)));
	d_2_ = (double) (3.0F
			 * (((Class265) this).aClass275Array4056[2].aFloat4135
			    - (((Class265) this).aClass275Array4056[1]
			       .aFloat4135))) - d;
	d_3_ = ((double) (((Class265) this).aClass275Array4056[3].aFloat4135
			  - ((Class265) this).aClass275Array4056[0].aFloat4135)
		- d - d_2_);
	ds[2]
	    = (d_3_ * (double) f_1_ + d_2_ * (double) f_0_ + d * (double) f
	       + (double) ((Class265) this).aClass275Array4056[0].aFloat4135);
	return ds;
    }
    
    void method5166(int i, Class275 class275) {
	((Class265) this).aClass275Array4056[i].method5417(class275);
	method5164();
    }
    
    Class275 method5167(int i) {
	return ((Class265) this).aClass275Array4056[i];
    }
    
    float method5168() {
	if (((Class265) this).aFloat4057 == -1.0F)
	    method5170();
	return ((Class265) this).aFloat4057;
    }
    
    float method5169(float f) {
	if (((Class265) this).aFloat4057 == -1.0F)
	    method5170();
	if (f <= 0.0F)
	    return 0.0F;
	if (f >= ((Class265) this).aFloat4057)
	    return 1.0F;
	float f_4_ = 0.0F;
	float f_5_ = ((Class265) this).aFloatArray4058[0];
	for (int i = 1; i < ((Class265) this).aFloatArray4058.length; i++) {
	    if (f < f_5_) {
		float f_6_ = (f - f_4_) / (f_5_ - f_4_);
		float f_7_
		    = ((float) (i - 1)
		       / (float) ((Class265) this).aFloatArray4058.length);
		float f_8_
		    = ((float) i
		       / (float) ((Class265) this).aFloatArray4058.length);
		return f_7_ + (f_8_ - f_7_) * f_6_;
	    }
	    f_4_ = f_5_;
	    f_5_ += ((Class265) this).aFloatArray4058[i];
	}
	float f_9_ = (f - f_4_) / (f_5_ - f_4_);
	float f_10_ = ((float) (((Class265) this).aFloatArray4058.length - 1)
		       / (float) ((Class265) this).aFloatArray4058.length);
	return f_10_ + (1.0F - f_10_) * f_9_;
    }
    
    void method5170() {
	int i = 20;
	double[] ds = method5165(0.0F);
	float f = 0.0F;
	Class275 class275 = Class275.method5439();
	for (int i_11_ = 1; i_11_ <= i; i_11_++) {
	    double[] ds_12_ = method5165((float) i_11_ / (float) i);
	    class275.aFloat4140 = (float) (ds_12_[0] - ds[0]);
	    class275.aFloat4138 = (float) (ds_12_[1] - ds[1]);
	    class275.aFloat4135 = (float) (ds_12_[2] - ds[2]);
	    f += class275.method5369();
	    ds = ds_12_;
	}
	int i_13_ = (int) (f / 20.0F);
	if (i_13_ < i)
	    i_13_ = i;
	((Class265) this).aFloatArray4058 = new float[i_13_];
	ds = method5165(0.0F);
	float f_14_ = 0.0F;
	for (int i_15_ = 1; i_15_ <= i_13_; i_15_++) {
	    double[] ds_16_ = method5165((float) i_15_ / (float) i_13_);
	    class275.aFloat4140 = (float) (ds_16_[0] - ds[0]);
	    class275.aFloat4138 = (float) (ds_16_[1] - ds[1]);
	    class275.aFloat4135 = (float) (ds_16_[2] - ds[2]);
	    float f_17_ = class275.method5369();
	    f_14_ += f_17_;
	    ((Class265) this).aFloatArray4058[i_15_ - 1] = f_17_;
	    ds = ds_16_;
	}
	((Class265) this).aFloat4057 = f_14_;
    }
    
    Class265() {
	for (int i = 0; i < 4; i++)
	    ((Class265) this).aClass275Array4056[i] = new Class275();
	method5164();
    }
    
    void method5171() {
	((Class265) this).aFloat4057 = -1.0F;
	((Class265) this).aFloatArray4058 = null;
    }
    
    double[] method5172(float f) {
	double[] ds = new double[3];
	float f_18_ = f * f;
	float f_19_ = f_18_ * f;
	double d
	    = (double) (3.0F
			* (((Class265) this).aClass275Array4056[1].aFloat4140
			   - (((Class265) this).aClass275Array4056[0]
			      .aFloat4140)));
	double d_20_
	    = ((double) (3.0F
			 * (((Class265) this).aClass275Array4056[2].aFloat4140
			    - (((Class265) this).aClass275Array4056[1]
			       .aFloat4140)))
	       - d);
	double d_21_
	    = ((double) (((Class265) this).aClass275Array4056[3].aFloat4140
			 - ((Class265) this).aClass275Array4056[0].aFloat4140)
	       - d - d_20_);
	ds[0]
	    = (d_21_ * (double) f_19_ + d_20_ * (double) f_18_ + d * (double) f
	       + (double) ((Class265) this).aClass275Array4056[0].aFloat4140);
	d = (double) (3.0F
		      * (((Class265) this).aClass275Array4056[1].aFloat4138
			 - (((Class265) this).aClass275Array4056[0]
			    .aFloat4138)));
	d_20_ = (double) (3.0F
			  * (((Class265) this).aClass275Array4056[2].aFloat4138
			     - (((Class265) this).aClass275Array4056[1]
				.aFloat4138))) - d;
	d_21_
	    = ((double) (((Class265) this).aClass275Array4056[3].aFloat4138
			 - ((Class265) this).aClass275Array4056[0].aFloat4138)
	       - d - d_20_);
	ds[1]
	    = (d_21_ * (double) f_19_ + d_20_ * (double) f_18_ + d * (double) f
	       + (double) ((Class265) this).aClass275Array4056[0].aFloat4138);
	d = (double) (3.0F
		      * (((Class265) this).aClass275Array4056[1].aFloat4135
			 - (((Class265) this).aClass275Array4056[0]
			    .aFloat4135)));
	d_20_ = (double) (3.0F
			  * (((Class265) this).aClass275Array4056[2].aFloat4135
			     - (((Class265) this).aClass275Array4056[1]
				.aFloat4135))) - d;
	d_21_
	    = ((double) (((Class265) this).aClass275Array4056[3].aFloat4135
			 - ((Class265) this).aClass275Array4056[0].aFloat4135)
	       - d - d_20_);
	ds[2]
	    = (d_21_ * (double) f_19_ + d_20_ * (double) f_18_ + d * (double) f
	       + (double) ((Class265) this).aClass275Array4056[0].aFloat4135);
	return ds;
    }
    
    Class275 method5173(int i) {
	return ((Class265) this).aClass275Array4056[i];
    }
    
    float method5174(float f) {
	if (((Class265) this).aFloat4057 == -1.0F)
	    method5170();
	if (f <= 0.0F)
	    return 0.0F;
	if (f >= ((Class265) this).aFloat4057)
	    return 1.0F;
	float f_22_ = 0.0F;
	float f_23_ = ((Class265) this).aFloatArray4058[0];
	for (int i = 1; i < ((Class265) this).aFloatArray4058.length; i++) {
	    if (f < f_23_) {
		float f_24_ = (f - f_22_) / (f_23_ - f_22_);
		float f_25_
		    = ((float) (i - 1)
		       / (float) ((Class265) this).aFloatArray4058.length);
		float f_26_
		    = ((float) i
		       / (float) ((Class265) this).aFloatArray4058.length);
		return f_25_ + (f_26_ - f_25_) * f_24_;
	    }
	    f_22_ = f_23_;
	    f_23_ += ((Class265) this).aFloatArray4058[i];
	}
	float f_27_ = (f - f_22_) / (f_23_ - f_22_);
	float f_28_ = ((float) (((Class265) this).aFloatArray4058.length - 1)
		       / (float) ((Class265) this).aFloatArray4058.length);
	return f_28_ + (1.0F - f_28_) * f_27_;
    }
    
    Class275 method5175(int i) {
	return ((Class265) this).aClass275Array4056[i];
    }
    
    Class275 method5176(int i) {
	return ((Class265) this).aClass275Array4056[i];
    }
    
    float method5177() {
	if (((Class265) this).aFloat4057 == -1.0F)
	    method5170();
	return ((Class265) this).aFloat4057;
    }
    
    float method5178() {
	if (((Class265) this).aFloat4057 == -1.0F)
	    method5170();
	return ((Class265) this).aFloat4057;
    }
    
    double[] method5179(float f) {
	double[] ds = new double[3];
	float f_29_ = f * f;
	float f_30_ = f_29_ * f;
	double d
	    = (double) (3.0F
			* (((Class265) this).aClass275Array4056[1].aFloat4140
			   - (((Class265) this).aClass275Array4056[0]
			      .aFloat4140)));
	double d_31_
	    = ((double) (3.0F
			 * (((Class265) this).aClass275Array4056[2].aFloat4140
			    - (((Class265) this).aClass275Array4056[1]
			       .aFloat4140)))
	       - d);
	double d_32_
	    = ((double) (((Class265) this).aClass275Array4056[3].aFloat4140
			 - ((Class265) this).aClass275Array4056[0].aFloat4140)
	       - d - d_31_);
	ds[0]
	    = (d_32_ * (double) f_30_ + d_31_ * (double) f_29_ + d * (double) f
	       + (double) ((Class265) this).aClass275Array4056[0].aFloat4140);
	d = (double) (3.0F
		      * (((Class265) this).aClass275Array4056[1].aFloat4138
			 - (((Class265) this).aClass275Array4056[0]
			    .aFloat4138)));
	d_31_ = (double) (3.0F
			  * (((Class265) this).aClass275Array4056[2].aFloat4138
			     - (((Class265) this).aClass275Array4056[1]
				.aFloat4138))) - d;
	d_32_
	    = ((double) (((Class265) this).aClass275Array4056[3].aFloat4138
			 - ((Class265) this).aClass275Array4056[0].aFloat4138)
	       - d - d_31_);
	ds[1]
	    = (d_32_ * (double) f_30_ + d_31_ * (double) f_29_ + d * (double) f
	       + (double) ((Class265) this).aClass275Array4056[0].aFloat4138);
	d = (double) (3.0F
		      * (((Class265) this).aClass275Array4056[1].aFloat4135
			 - (((Class265) this).aClass275Array4056[0]
			    .aFloat4135)));
	d_31_ = (double) (3.0F
			  * (((Class265) this).aClass275Array4056[2].aFloat4135
			     - (((Class265) this).aClass275Array4056[1]
				.aFloat4135))) - d;
	d_32_
	    = ((double) (((Class265) this).aClass275Array4056[3].aFloat4135
			 - ((Class265) this).aClass275Array4056[0].aFloat4135)
	       - d - d_31_);
	ds[2]
	    = (d_32_ * (double) f_30_ + d_31_ * (double) f_29_ + d * (double) f
	       + (double) ((Class265) this).aClass275Array4056[0].aFloat4135);
	return ds;
    }
    
    float method5180(float f) {
	if (((Class265) this).aFloat4057 == -1.0F)
	    method5170();
	if (f <= 0.0F)
	    return 0.0F;
	if (f >= ((Class265) this).aFloat4057)
	    return 1.0F;
	float f_33_ = 0.0F;
	float f_34_ = ((Class265) this).aFloatArray4058[0];
	for (int i = 1; i < ((Class265) this).aFloatArray4058.length; i++) {
	    if (f < f_34_) {
		float f_35_ = (f - f_33_) / (f_34_ - f_33_);
		float f_36_
		    = ((float) (i - 1)
		       / (float) ((Class265) this).aFloatArray4058.length);
		float f_37_
		    = ((float) i
		       / (float) ((Class265) this).aFloatArray4058.length);
		return f_36_ + (f_37_ - f_36_) * f_35_;
	    }
	    f_33_ = f_34_;
	    f_34_ += ((Class265) this).aFloatArray4058[i];
	}
	float f_38_ = (f - f_33_) / (f_34_ - f_33_);
	float f_39_ = ((float) (((Class265) this).aFloatArray4058.length - 1)
		       / (float) ((Class265) this).aFloatArray4058.length);
	return f_39_ + (1.0F - f_39_) * f_38_;
    }
    
    void method5181() {
	int i = 20;
	double[] ds = method5165(0.0F);
	float f = 0.0F;
	Class275 class275 = Class275.method5439();
	for (int i_40_ = 1; i_40_ <= i; i_40_++) {
	    double[] ds_41_ = method5165((float) i_40_ / (float) i);
	    class275.aFloat4140 = (float) (ds_41_[0] - ds[0]);
	    class275.aFloat4138 = (float) (ds_41_[1] - ds[1]);
	    class275.aFloat4135 = (float) (ds_41_[2] - ds[2]);
	    f += class275.method5369();
	    ds = ds_41_;
	}
	int i_42_ = (int) (f / 20.0F);
	if (i_42_ < i)
	    i_42_ = i;
	((Class265) this).aFloatArray4058 = new float[i_42_];
	ds = method5165(0.0F);
	float f_43_ = 0.0F;
	for (int i_44_ = 1; i_44_ <= i_42_; i_44_++) {
	    double[] ds_45_ = method5165((float) i_44_ / (float) i_42_);
	    class275.aFloat4140 = (float) (ds_45_[0] - ds[0]);
	    class275.aFloat4138 = (float) (ds_45_[1] - ds[1]);
	    class275.aFloat4135 = (float) (ds_45_[2] - ds[2]);
	    float f_46_ = class275.method5369();
	    f_43_ += f_46_;
	    ((Class265) this).aFloatArray4058[i_44_ - 1] = f_46_;
	    ds = ds_45_;
	}
	((Class265) this).aFloat4057 = f_43_;
    }
}
