-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathap.java
117 lines (103 loc) · 2.98 KB
/
ap.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
public abstract class ap extends cy {
private int f;
private int g;
private cc[] a = new cc[6];
private cc[] b = new cc[6];
private int[] a;
private static cc a = new cc();
private static cc b = new cc();
private static cc c = new cc();
protected int a;
protected int d;
private int h;
private int i;
protected ap(int var1, int var2, int var3, int var4, int var5) {
for(int var6 = this.b.length - 1; var6 >= 0; --var6) {
this.b[var6] = new cc();
}
this.a = new int[6];
this.a[0] = new cc(0, 0, -4096);
this.a[1] = new cc(0, 0, 4096);
this.a[2] = new cc();
this.a[3] = new cc();
this.a[4] = new cc();
this.a[5] = new cc();
this.a = var1;
this.d = var2;
this.a(var3, var4, var5);
}
public final void b(boolean var1) {
if (this.b || var1) {
if (this.a != null) {
this.c = this.a.c.a(this.b, this.c);
} else {
this.c.a(this.b);
}
this.b = this.c.a(this.a, this.b);
a = this.c.a(a);
b = this.c.b(b);
c.a(b);
b.a(-this.f);
c.a(-this.g);
b.b(a);
c.b(a);
this.a[0] = b.a(this.b[0]);
this.a[1] = c.a(this.b[1]);
this.a[2] = a.a(this.b[2]);
this.a[3] = a.a(this.b[3]);
this.a[4] = a.a(this.b[4]);
this.a[5] = a.a(this.b[5]);
this.b = false;
this.c = false;
}
}
public void a(int var1, int var2, int var3) {
this.f = var2;
this.g = var3;
var2 = g.a(var1 >> 1);
var1 = g.b(var1 >> 1);
this.a[2].a(var1, 0, -var2);
this.a[3].a(-var1, 0, -var2);
this.a[4].a(0, -var1, -var2);
this.a[5].a(0, var1, -var2);
this.h = (var2 << 12) / var1;
this.i = this.h * ((this.a << 12) / this.d) >> 12;
}
public final void a(int var1) {
this.a(var1, this.f, this.g);
}
public final boolean a(cc var1) {
if ((var1 = this.c.f(var1)).c > this.f) {
return false;
} else {
int var2 = this.i * var1.c >> 12;
int var3 = this.h * var1.c >> 12;
if (var2 != 0 && var3 != 0) {
var1.a = -((var1.a << 11) / var2 * this.a >> 12) + (this.a >> 1);
var1.b = ((var1.b << 11) / var3 * this.d >> 12) + (this.d >> 1);
return var1.a >= 0 && var1.b >= 0 && var1.a < this.a && var1.b < this.d;
} else {
return false;
}
}
}
public final byte a(am var1) {
for(int var3 = 5; var3 >= 0; --var3) {
int var2;
if ((var2 = var1.a.a(this.b[var3]) - this.a[var3]) < -var1.a) {
return 0;
}
if (g.e(var2) < var1.a) {
return 1;
}
}
return 2;
}
public final void a(ap var1, af var2) {
}
public final void b(ap var1, af var2) {
}
public static ap a(int var0, int var1, int var2, int var3, int var4) {
return new j(var0, var1, var2, var3, var4);
}
}