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

public final class Class276 {
	public float[] aFloatArray4207 = new float[9];

	public Class262 method5425() {
		Class262 class262 = new Class262();
		double d = (double) (1.0F + aFloatArray4207[0] + aFloatArray4207[4] + aFloatArray4207[8]);
		if (d > 1.0E-8) {
			float f = (float) (Math.sqrt(d) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[7] - aFloatArray4207[5]) / f;
			class262.aFloat4112 = (aFloatArray4207[2] - aFloatArray4207[6]) / f;
			class262.aFloat4113 = (aFloatArray4207[3] - aFloatArray4207[1]) / f;
			class262.aFloat4114 = 0.25F * f;
		} else if (aFloatArray4207[0] > aFloatArray4207[4] && aFloatArray4207[0] > aFloatArray4207[8]) {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[0] - aFloatArray4207[4] - aFloatArray4207[8])) * 2.0);
			class262.aFloat4111 = 0.25F * f;
			class262.aFloat4112 = (aFloatArray4207[3] + aFloatArray4207[1]) / f;
			class262.aFloat4113 = (aFloatArray4207[2] + aFloatArray4207[6]) / f;
			class262.aFloat4114 = (aFloatArray4207[7] - aFloatArray4207[5]) / f;
		} else if (aFloatArray4207[4] > aFloatArray4207[8]) {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[4] - aFloatArray4207[0] - aFloatArray4207[8])) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[3] + aFloatArray4207[1]) / f;
			class262.aFloat4112 = 0.25F * f;
			class262.aFloat4113 = (aFloatArray4207[7] + aFloatArray4207[5]) / f;
			class262.aFloat4114 = (aFloatArray4207[2] - aFloatArray4207[6]) / f;
		} else {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[8] - aFloatArray4207[0] - aFloatArray4207[4])) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[2] + aFloatArray4207[6]) / f;
			class262.aFloat4112 = (aFloatArray4207[7] + aFloatArray4207[5]) / f;
			class262.aFloat4113 = 0.25F * f;
			class262.aFloat4114 = (aFloatArray4207[3] - aFloatArray4207[1]) / f;
		}
		return class262;
	}

	public Class262 method5426() {
		Class262 class262 = new Class262();
		double d = (double) (1.0F + aFloatArray4207[0] + aFloatArray4207[4] + aFloatArray4207[8]);
		if (d > 1.0E-8) {
			float f = (float) (Math.sqrt(d) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[7] - aFloatArray4207[5]) / f;
			class262.aFloat4112 = (aFloatArray4207[2] - aFloatArray4207[6]) / f;
			class262.aFloat4113 = (aFloatArray4207[3] - aFloatArray4207[1]) / f;
			class262.aFloat4114 = 0.25F * f;
		} else if (aFloatArray4207[0] > aFloatArray4207[4] && aFloatArray4207[0] > aFloatArray4207[8]) {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[0] - aFloatArray4207[4] - aFloatArray4207[8])) * 2.0);
			class262.aFloat4111 = 0.25F * f;
			class262.aFloat4112 = (aFloatArray4207[3] + aFloatArray4207[1]) / f;
			class262.aFloat4113 = (aFloatArray4207[2] + aFloatArray4207[6]) / f;
			class262.aFloat4114 = (aFloatArray4207[7] - aFloatArray4207[5]) / f;
		} else if (aFloatArray4207[4] > aFloatArray4207[8]) {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[4] - aFloatArray4207[0] - aFloatArray4207[8])) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[3] + aFloatArray4207[1]) / f;
			class262.aFloat4112 = 0.25F * f;
			class262.aFloat4113 = (aFloatArray4207[7] + aFloatArray4207[5]) / f;
			class262.aFloat4114 = (aFloatArray4207[2] - aFloatArray4207[6]) / f;
		} else {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[8] - aFloatArray4207[0] - aFloatArray4207[4])) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[2] + aFloatArray4207[6]) / f;
			class262.aFloat4112 = (aFloatArray4207[7] + aFloatArray4207[5]) / f;
			class262.aFloat4113 = 0.25F * f;
			class262.aFloat4114 = (aFloatArray4207[3] - aFloatArray4207[1]) / f;
		}
		return class262;
	}

	void method5427() {
		aFloatArray4207[0] = 1.0F;
		aFloatArray4207[1] = 0.0F;
		aFloatArray4207[2] = 0.0F;
		aFloatArray4207[3] = 0.0F;
		aFloatArray4207[4] = 1.0F;
		aFloatArray4207[5] = 0.0F;
		aFloatArray4207[6] = 0.0F;
		aFloatArray4207[7] = 0.0F;
		aFloatArray4207[8] = 1.0F;
	}

	public Class262 method5428() {
		Class262 class262 = new Class262();
		double d = (double) (1.0F + aFloatArray4207[0] + aFloatArray4207[4] + aFloatArray4207[8]);
		if (d > 1.0E-8) {
			float f = (float) (Math.sqrt(d) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[7] - aFloatArray4207[5]) / f;
			class262.aFloat4112 = (aFloatArray4207[2] - aFloatArray4207[6]) / f;
			class262.aFloat4113 = (aFloatArray4207[3] - aFloatArray4207[1]) / f;
			class262.aFloat4114 = 0.25F * f;
		} else if (aFloatArray4207[0] > aFloatArray4207[4] && aFloatArray4207[0] > aFloatArray4207[8]) {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[0] - aFloatArray4207[4] - aFloatArray4207[8])) * 2.0);
			class262.aFloat4111 = 0.25F * f;
			class262.aFloat4112 = (aFloatArray4207[3] + aFloatArray4207[1]) / f;
			class262.aFloat4113 = (aFloatArray4207[2] + aFloatArray4207[6]) / f;
			class262.aFloat4114 = (aFloatArray4207[7] - aFloatArray4207[5]) / f;
		} else if (aFloatArray4207[4] > aFloatArray4207[8]) {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[4] - aFloatArray4207[0] - aFloatArray4207[8])) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[3] + aFloatArray4207[1]) / f;
			class262.aFloat4112 = 0.25F * f;
			class262.aFloat4113 = (aFloatArray4207[7] + aFloatArray4207[5]) / f;
			class262.aFloat4114 = (aFloatArray4207[2] - aFloatArray4207[6]) / f;
		} else {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[8] - aFloatArray4207[0] - aFloatArray4207[4])) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[2] + aFloatArray4207[6]) / f;
			class262.aFloat4112 = (aFloatArray4207[7] + aFloatArray4207[5]) / f;
			class262.aFloat4113 = 0.25F * f;
			class262.aFloat4114 = (aFloatArray4207[3] - aFloatArray4207[1]) / f;
		}
		return class262;
	}

	void method5429() {
		aFloatArray4207[0] = 1.0F;
		aFloatArray4207[1] = 0.0F;
		aFloatArray4207[2] = 0.0F;
		aFloatArray4207[3] = 0.0F;
		aFloatArray4207[4] = 1.0F;
		aFloatArray4207[5] = 0.0F;
		aFloatArray4207[6] = 0.0F;
		aFloatArray4207[7] = 0.0F;
		aFloatArray4207[8] = 1.0F;
	}

	public Class262 method5430() {
		Class262 class262 = new Class262();
		double d = (double) (1.0F + aFloatArray4207[0] + aFloatArray4207[4] + aFloatArray4207[8]);
		if (d > 1.0E-8) {
			float f = (float) (Math.sqrt(d) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[7] - aFloatArray4207[5]) / f;
			class262.aFloat4112 = (aFloatArray4207[2] - aFloatArray4207[6]) / f;
			class262.aFloat4113 = (aFloatArray4207[3] - aFloatArray4207[1]) / f;
			class262.aFloat4114 = 0.25F * f;
		} else if (aFloatArray4207[0] > aFloatArray4207[4] && aFloatArray4207[0] > aFloatArray4207[8]) {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[0] - aFloatArray4207[4] - aFloatArray4207[8])) * 2.0);
			class262.aFloat4111 = 0.25F * f;
			class262.aFloat4112 = (aFloatArray4207[3] + aFloatArray4207[1]) / f;
			class262.aFloat4113 = (aFloatArray4207[2] + aFloatArray4207[6]) / f;
			class262.aFloat4114 = (aFloatArray4207[7] - aFloatArray4207[5]) / f;
		} else if (aFloatArray4207[4] > aFloatArray4207[8]) {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[4] - aFloatArray4207[0] - aFloatArray4207[8])) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[3] + aFloatArray4207[1]) / f;
			class262.aFloat4112 = 0.25F * f;
			class262.aFloat4113 = (aFloatArray4207[7] + aFloatArray4207[5]) / f;
			class262.aFloat4114 = (aFloatArray4207[2] - aFloatArray4207[6]) / f;
		} else {
			float f = (float) (Math.sqrt((double) (1.0F + aFloatArray4207[8] - aFloatArray4207[0] - aFloatArray4207[4])) * 2.0);
			class262.aFloat4111 = (aFloatArray4207[2] + aFloatArray4207[6]) / f;
			class262.aFloat4112 = (aFloatArray4207[7] + aFloatArray4207[5]) / f;
			class262.aFloat4113 = 0.25F * f;
			class262.aFloat4114 = (aFloatArray4207[3] - aFloatArray4207[1]) / f;
		}
		return class262;
	}

	public Class276() {
		method5427();
	}

	void method5431() {
		aFloatArray4207[0] = 1.0F;
		aFloatArray4207[1] = 0.0F;
		aFloatArray4207[2] = 0.0F;
		aFloatArray4207[3] = 0.0F;
		aFloatArray4207[4] = 1.0F;
		aFloatArray4207[5] = 0.0F;
		aFloatArray4207[6] = 0.0F;
		aFloatArray4207[7] = 0.0F;
		aFloatArray4207[8] = 1.0F;
	}
}
