terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Plane.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x0200032B RID: 811
9 public struct Plane : IEquatable<Plane>
10 {
11 // Token: 0x0600130C RID: 4876 RVA: 0x0005C574 File Offset: 0x0005A774
13 {
14 }
15
16 // Token: 0x0600130D RID: 4877 RVA: 0x0005C584 File Offset: 0x0005A784
17 public Plane(Vector3 normal, float d)
18 {
19 }
20
21 // Token: 0x0600130E RID: 4878 RVA: 0x0005C594 File Offset: 0x0005A794
22 public Plane(Vector3 a, Vector3 b, Vector3 c)
23 {
24 if (!true)
25 {
26 }
27 }
28
29 // Token: 0x0600130F RID: 4879 RVA: 0x0005C5A4 File Offset: 0x0005A7A4
30 public Plane(float a, float b, float c, float d)
31 {
32 }
33
34 // Token: 0x06001310 RID: 4880 RVA: 0x0005C5B4 File Offset: 0x0005A7B4
35 public float Dot(Vector4 value)
36 {
37 /*
38An exception occurred when decompiling this method (06001310)
39
40ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.Plane::Dot(Microsoft.Xna.Framework.Vector4)
41
42 ---> System.Exception: Basic block has to end with unconditional control flow.
43{
44 Block_0:
45 stloc:float32(var_0_0B, ldfld:float32(Vector3::X, ldfld:Vector3[exp:valuetype Microsoft.Xna.Framework.Vector3&](Plane::Normal, ldloc:valuetype Microsoft.Xna.Framework.Plane&(this))))
46 stloc:float32(var_1_17, ldfld:float32(Vector3::Y, ldfld:Vector3[exp:valuetype Microsoft.Xna.Framework.Vector3&](Plane::Normal, ldloc:valuetype Microsoft.Xna.Framework.Plane&(this))))
47 stloc:float32(var_2_23, ldfld:float32(Vector3::Z, ldfld:Vector3[exp:valuetype Microsoft.Xna.Framework.Vector3&](Plane::Normal, ldloc:valuetype Microsoft.Xna.Framework.Plane&(this))))
48}
49
50 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
51 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
52 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
53 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
54 --- End of inner exception stack trace ---
55 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
56 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
57*/;
58 }
59
60 // Token: 0x06001311 RID: 4881 RVA: 0x0005C5E4 File Offset: 0x0005A7E4
61 public void Dot(Vector4 value, [Out] float result)
62 {
63 float d = this.D;
64 float x = this.Normal.X;
65 float x2 = value.X;
66 float y = value.Y;
67 float y2 = this.Normal.Y;
68 float z = this.Normal.Z;
69 float z2 = value.Z;
70 float w = value.W;
71 }
72
73 // Token: 0x06001312 RID: 4882 RVA: 0x0005C63C File Offset: 0x0005A83C
75 {
76 /*
77An exception occurred when decompiling this method (06001312)
78
79ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.Plane::DotCoordinate(Microsoft.Xna.Framework.Vector3)
80
81 ---> System.Exception: Basic block has to end with unconditional control flow.
82{
83 Block_0:
84 stloc:float32(var_0_0B, ldfld:float32(Vector3::X, ldfld:Vector3[exp:valuetype Microsoft.Xna.Framework.Vector3&](Plane::Normal, ldloc:valuetype Microsoft.Xna.Framework.Plane&(this))))
85 stloc:float32(var_1_17, ldfld:float32(Vector3::Y, ldfld:Vector3[exp:valuetype Microsoft.Xna.Framework.Vector3&](Plane::Normal, ldloc:valuetype Microsoft.Xna.Framework.Plane&(this))))
86 stloc:float32(var_2_23, ldfld:float32(Vector3::Z, ldfld:Vector3[exp:valuetype Microsoft.Xna.Framework.Vector3&](Plane::Normal, ldloc:valuetype Microsoft.Xna.Framework.Plane&(this))))
87}
88
89 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
90 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
91 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
92 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
93 --- End of inner exception stack trace ---
94 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
95 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
96*/;
97 }
98
99 // Token: 0x06001313 RID: 4883 RVA: 0x0005C66C File Offset: 0x0005A86C
100 public void DotCoordinate(Vector3 value, [Out] float result)
101 {
102 float d = this.D;
103 float x = this.Normal.X;
104 float x2 = value.X;
105 float y = value.Y;
106 float y2 = this.Normal.Y;
107 float z = this.Normal.Z;
108 float z2 = value.Z;
109 }
110
111 // Token: 0x06001314 RID: 4884 RVA: 0x0005C6BC File Offset: 0x0005A8BC
112 public float DotNormal(Vector3 value)
113 {
114 /*
115An exception occurred when decompiling this method (06001314)
116
117ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.Plane::DotNormal(Microsoft.Xna.Framework.Vector3)
118
119 ---> System.Exception: Basic block has to end with unconditional control flow.
120{
121 Block_0:
122 stloc:float32(var_0_0B, ldfld:float32(Vector3::X, ldfld:Vector3[exp:valuetype Microsoft.Xna.Framework.Vector3&](Plane::Normal, ldloc:valuetype Microsoft.Xna.Framework.Plane&(this))))
123 stloc:float32(var_1_17, ldfld:float32(Vector3::Y, ldfld:Vector3[exp:valuetype Microsoft.Xna.Framework.Vector3&](Plane::Normal, ldloc:valuetype Microsoft.Xna.Framework.Plane&(this))))
124 stloc:float32(var_2_23, ldfld:float32(Vector3::Z, ldfld:Vector3[exp:valuetype Microsoft.Xna.Framework.Vector3&](Plane::Normal, ldloc:valuetype Microsoft.Xna.Framework.Plane&(this))))
125}
126
127 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
128 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
129 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
130 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
131 --- End of inner exception stack trace ---
132 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
133 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
134*/;
135 }
136
137 // Token: 0x06001315 RID: 4885 RVA: 0x0005C6EC File Offset: 0x0005A8EC
138 public void DotNormal(Vector3 value, [Out] float result)
139 {
140 float x = this.Normal.X;
141 float y = this.Normal.Y;
142 float x2 = value.X;
143 float y2 = value.Y;
144 float z = this.Normal.Z;
145 float z2 = value.Z;
146 }
147
148 // Token: 0x06001316 RID: 4886 RVA: 0x000021DB File Offset: 0x000003DB
149 public static void Transform(Plane plane, Quaternion rotation, [Out] Plane result)
150 {
151 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
152 }
153
154 // Token: 0x06001317 RID: 4887 RVA: 0x000021DB File Offset: 0x000003DB
155 public static void Transform(Plane plane, Matrix matrix, [Out] Plane result)
156 {
157 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
158 }
159
160 // Token: 0x06001318 RID: 4888 RVA: 0x000021DB File Offset: 0x000003DB
161 public static Plane Transform(Plane plane, Quaternion rotation)
162 {
163 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
164 }
165
166 // Token: 0x06001319 RID: 4889 RVA: 0x000021DB File Offset: 0x000003DB
168 {
169 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
170 }
171
172 // Token: 0x0600131A RID: 4890 RVA: 0x0005C734 File Offset: 0x0005A934
173 public void Normalize()
174 {
175 float x = this.Normal.X;
176 float y = this.Normal.Y;
177 float z = this.Normal.Z;
178 if (!true)
179 {
180 }
181 if (!true)
182 {
183 }
184 }
185
186 // Token: 0x0600131B RID: 4891 RVA: 0x000021DB File Offset: 0x000003DB
187 public static Plane Normalize(Plane value)
188 {
189 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
190 }
191
192 // Token: 0x0600131C RID: 4892 RVA: 0x0005C76C File Offset: 0x0005A96C
193 public static void Normalize(Plane value, [Out] Plane result)
194 {
195 float x = value.Normal.X;
196 float y = value.Normal.Y;
197 float z = value.Normal.Z;
198 if (!true)
199 {
200 }
201 if (!true)
202 {
203 }
204 float d = value.D;
205 float x2 = value.Normal.X;
206 float y2 = value.Normal.Y;
207 float z2 = value.Normal.Z;
208 }
209
210 // Token: 0x0600131D RID: 4893 RVA: 0x0005C7D4 File Offset: 0x0005A9D4
211 public static bool operator !=(Plane plane1, Plane plane2)
212 {
213 bool flag;
214 return flag;
215 }
216
217 // Token: 0x0600131E RID: 4894 RVA: 0x0005C7E4 File Offset: 0x0005A9E4
218 public static bool operator ==(Plane plane1, Plane plane2)
219 {
220 bool flag;
221 return flag;
222 }
223
224 // Token: 0x0600131F RID: 4895 RVA: 0x0005C7F4 File Offset: 0x0005A9F4
225 public override bool Equals(object other)
226 {
227 if (other != null)
228 {
229 }
230 bool flag;
231 return flag;
232 }
233
234 // Token: 0x06001320 RID: 4896 RVA: 0x0005C808 File Offset: 0x0005AA08
235 public bool Equals(Plane other)
236 {
237 float x = this.Normal.X;
238 float y = this.Normal.Y;
239 float z = this.Normal.Z;
240 if (!true)
241 {
242 return;
243 }
244 }
245
246 // Token: 0x06001321 RID: 4897 RVA: 0x0005C840 File Offset: 0x0005AA40
247 public override int GetHashCode()
248 {
249 float x = this.Normal.X;
250 float y = this.Normal.Y;
251 float z = this.Normal.Z;
252 int num;
253 return num;
254 }
255
256 // Token: 0x06001322 RID: 4898 RVA: 0x0005C874 File Offset: 0x0005AA74
257 public override string ToString()
258 {
259 float z = this.Normal.Z;
260 string text;
261 return text;
262 }
263
264 // Token: 0x04002263 RID: 8803
265 public float D;
266
267 // Token: 0x04002264 RID: 8804
269 }
270}
class f__AnonymousType0<< Count > j__TPar
static void Transform(Plane plane, Quaternion rotation, [Out] Plane result)
Definition Plane.cs:149
override int GetHashCode()
Definition Plane.cs:247
float DotCoordinate(Vector3 value)
Definition Plane.cs:74
void DotNormal(Vector3 value, [Out] float result)
Definition Plane.cs:138
float DotNormal(Vector3 value)
Definition Plane.cs:112
static Plane Transform(Plane plane, Matrix matrix)
Definition Plane.cs:167
static bool operator==(Plane plane1, Plane plane2)
Definition Plane.cs:218
Plane(Vector3 a, Vector3 b, Vector3 c)
Definition Plane.cs:22
override bool Equals(object other)
Definition Plane.cs:225
void DotCoordinate(Vector3 value, [Out] float result)
Definition Plane.cs:100
static void Transform(Plane plane, Matrix matrix, [Out] Plane result)
Definition Plane.cs:155
static void Normalize(Plane value, [Out] Plane result)
Definition Plane.cs:193
float Dot(Vector4 value)
Definition Plane.cs:35
static Plane Transform(Plane plane, Quaternion rotation)
Definition Plane.cs:161
bool Equals(Plane other)
Definition Plane.cs:235
Plane(float a, float b, float c, float d)
Definition Plane.cs:30
Plane(Vector3 normal, float d)
Definition Plane.cs:17
Plane(Vector4 value)
Definition Plane.cs:12
static Plane Normalize(Plane value)
Definition Plane.cs:187
override string ToString()
Definition Plane.cs:257
static bool operator!=(Plane plane1, Plane plane2)
Definition Plane.cs:211
void Dot(Vector4 value, [Out] float result)
Definition Plane.cs:61