first commit

This commit is contained in:
2026-03-18 12:51:32 +03:00
commit 97ef2458fd
63 changed files with 10658 additions and 0 deletions

71
p000/VectorMath.java Normal file
View File

@@ -0,0 +1,71 @@
package p000;
/* renamed from: o */
/* loaded from: microcounterstrike.jar:o.class */
public final class VectorMath {
/* renamed from: a */
public static float getFloat259(float[] fArr, float[] fArr2) {
if (fArr.length != fArr2.length) {
throw new ArithmeticException();
}
float f = 0.0f;
for (int i = 0; i < fArr.length; i++) {
f += fArr[i] * fArr2[i];
}
return f;
}
/* renamed from: b */
public static float[] getFloatArray260(float[] fArr, float[] fArr2) {
if (fArr.length == 3 && fArr2.length == 3) {
return new float[]{(fArr[1] * fArr2[2]) - (fArr[2] * fArr2[1]), (fArr[2] * fArr2[0]) - (fArr[0] * fArr2[2]), (fArr[0] * fArr2[1]) - (fArr[1] * fArr2[0])};
}
throw new ArithmeticException();
}
/* renamed from: a */
public static float getFloat261(float[] fArr) {
float f = 0.0f;
for (int i = 0; i < fArr.length; i++) {
f += fArr[i] * fArr[i];
}
return (float) Math.sqrt(f);
}
/* renamed from: c */
public static float[] getFloatArray262(float[] fArr, float[] fArr2) {
return new float[]{fArr[0] + fArr2[0], fArr[1] + fArr2[1], fArr[2] + fArr2[2]};
}
/* renamed from: b */
public static float[] getFloatArray263(float[] fArr) {
float fM261a = getFloat261(fArr);
float[] fArr2 = new float[fArr.length];
for (int i = 0; i < fArr2.length; i++) {
fArr2[i] = fArr[i] / fM261a;
}
return fArr2;
}
/* renamed from: e */
private static float[] getFloatArray264(float[] fArr, float[] fArr2) {
float fM259a = getFloat259(fArr, fArr2);
float fM261a = getFloat261(fArr2);
float f = fM259a / (fM261a * fM261a);
float[] fArr3 = new float[3];
for (int i = 0; i < fArr3.length; i++) {
fArr3[i] = fArr2[i] * f;
}
return fArr3;
}
/* renamed from: d */
public static float[] getFloatArray265(float[] fArr, float[] fArr2) {
float[] fArrM264e = getFloatArray264(fArr, fArr2);
float[] fArr3 = new float[3];
for (int i = 0; i < fArr3.length; i++) {
fArr3[i] = fArr[i] - fArrM264e[i];
}
return fArr3;
}
}