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
Vector4.cs
Go to the documentation of this file.
1using System;
7
8namespace UnityEngine
9{
10 // Token: 0x020000CC RID: 204
11 [NativeClass("Vector4f")]
12 [NativeHeader("Runtime/Math/Vector4.h")]
14 [RequiredByNativeCode(Optional = true, GenerateProxy = true)]
15 public struct Vector4 : IEquatable<Vector4>, IFormattable
16 {
17 // Token: 0x170000C2 RID: 194
18 public float this[int index]
19 {
20 get
21 {
22 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
23 }
24 set
25 {
26 }
27 }
28
29 // Token: 0x060003BC RID: 956 RVA: 0x000077C8 File Offset: 0x000059C8
30 public Vector4(float x, float y, float z, float w)
31 {
32 }
33
34 // Token: 0x060003BD RID: 957 RVA: 0x000077D8 File Offset: 0x000059D8
35 public override int GetHashCode()
36 {
37 int num;
38 return num;
39 }
40
41 // Token: 0x060003BE RID: 958 RVA: 0x000077E8 File Offset: 0x000059E8
42 public override bool Equals(object other)
43 {
44 /*
45An exception occurred when decompiling this method (060003BE)
46
47ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.Vector4::Equals(System.Object)
48
49 ---> System.Exception: Basic block has to end with unconditional control flow.
50{
51 IL_0003:
52 stloc:float32(var_1_0B, ldfld:float32(Vector4::y, ldloc:valuetype UnityEngine.Vector4&(this)))
53 stloc:float32(var_2_12, ldfld:float32(Vector4::z, ldloc:valuetype UnityEngine.Vector4&(this)))
54 stloc:float32(var_3_19, ldfld:float32(Vector4::w, ldloc:valuetype UnityEngine.Vector4&(this)))
55}
56
57 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
58 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
59 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
60 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
61 --- End of inner exception stack trace ---
62 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
63 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
64*/;
65 }
66
67 // Token: 0x060003BF RID: 959 RVA: 0x00007810 File Offset: 0x00005A10
68 public bool Equals(Vector4 other)
69 {
70 /*
71An exception occurred when decompiling this method (060003BF)
72
73ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.Vector4::Equals(UnityEngine.Vector4)
74
75 ---> System.Exception: Basic block has to end with unconditional control flow.
76{
77 Block_0:
78 stloc:float32(var_0_06, ldfld:float32(Vector4::y, ldloc:valuetype UnityEngine.Vector4&(this)))
79 stloc:float32(var_1_0D, ldfld:float32(Vector4::z, ldloc:valuetype UnityEngine.Vector4&(this)))
80 stloc:float32(var_2_14, ldfld:float32(Vector4::w, ldloc:valuetype UnityEngine.Vector4&(this)))
81}
82
83 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
84 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
85 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
86 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
87 --- End of inner exception stack trace ---
88 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
89 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
90*/;
91 }
92
93 // Token: 0x060003C0 RID: 960 RVA: 0x000021B3 File Offset: 0x000003B3
94 public static float Dot(Vector4 a, Vector4 b)
95 {
96 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
97 }
98
99 // Token: 0x170000C3 RID: 195
100 // (get) Token: 0x060003C1 RID: 961 RVA: 0x00007834 File Offset: 0x00005A34
101 public float sqrMagnitude
102 {
103 get
104 {
105 /*
106An exception occurred when decompiling this method (060003C1)
107
108ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single UnityEngine.Vector4::get_sqrMagnitude()
109
110 ---> System.Exception: Basic block has to end with unconditional control flow.
111{
112 Block_0:
113 stloc:float32(var_0_06, ldfld:float32(Vector4::x, ldloc:valuetype UnityEngine.Vector4&(this)))
114 stloc:float32(var_1_0D, ldfld:float32(Vector4::y, ldloc:valuetype UnityEngine.Vector4&(this)))
115 stloc:float32(var_2_14, ldfld:float32(Vector4::z, ldloc:valuetype UnityEngine.Vector4&(this)))
116 stloc:float32(var_3_1B, ldfld:float32(Vector4::w, ldloc:valuetype UnityEngine.Vector4&(this)))
117}
118
119 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
120 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
121 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
122 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
123 --- End of inner exception stack trace ---
124 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
125 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
126*/;
127 }
128 }
129
130 // Token: 0x170000C4 RID: 196
131 // (get) Token: 0x060003C2 RID: 962 RVA: 0x000021B3 File Offset: 0x000003B3
132 public static Vector4 zero
133 {
134 get
135 {
136 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
137 }
138 }
139
140 // Token: 0x170000C5 RID: 197
141 // (get) Token: 0x060003C3 RID: 963 RVA: 0x000021B3 File Offset: 0x000003B3
142 public static Vector4 one
143 {
144 get
145 {
146 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
147 }
148 }
149
150 // Token: 0x060003C4 RID: 964 RVA: 0x0000785C File Offset: 0x00005A5C
151 public static Vector4 operator /(Vector4 a, float d)
152 {
153 Vector4 vector;
154 return vector;
155 }
156
157 // Token: 0x060003C5 RID: 965 RVA: 0x000021B3 File Offset: 0x000003B3
158 public static bool operator ==(Vector4 lhs, Vector4 rhs)
159 {
160 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
161 }
162
163 // Token: 0x060003C6 RID: 966 RVA: 0x0000786C File Offset: 0x00005A6C
164 public static implicit operator Vector4(Vector3 v)
165 {
166 Vector4 vector;
167 return vector;
168 }
169
170 // Token: 0x060003C7 RID: 967 RVA: 0x0000787C File Offset: 0x00005A7C
171 public static implicit operator Vector4(Vector2 v)
172 {
173 Vector4 vector;
174 return vector;
175 }
176
177 // Token: 0x060003C8 RID: 968 RVA: 0x0000788C File Offset: 0x00005A8C
178 public override string ToString()
179 {
180 string text;
181 return text;
182 }
183
184 // Token: 0x060003C9 RID: 969 RVA: 0x0000789C File Offset: 0x00005A9C
186 {
187 bool flag = string.IsNullOrEmpty(format);
188 if (formatProvider == null)
189 {
191 }
192 string text;
193 string text2;
194 string text3;
195 string text4;
196 if ((text == null || text != null) && (text2 == null || text2 != null) && (text3 == null || text3 != null) && (text4 == null || text4 != null))
197 {
198 string text5;
199 return text5;
200 }
201 throw new ArrayTypeMismatchException();
202 }
203
204 // Token: 0x060003CA RID: 970 RVA: 0x000078E8 File Offset: 0x00005AE8
205 // Note: this type is marked as 'beforefieldinit'.
206 static Vector4()
207 {
208 }
209
210 // Token: 0x040003A3 RID: 931
211 public const float kEpsilon = 1E-05f;
212
213 // Token: 0x040003A4 RID: 932
214 public float x;
215
216 // Token: 0x040003A5 RID: 933
217 public float y;
218
219 // Token: 0x040003A6 RID: 934
220 public float z;
221
222 // Token: 0x040003A7 RID: 935
223 public float w;
224
225 // Token: 0x040003A8 RID: 936
227
228 // Token: 0x040003A9 RID: 937
229 private static readonly Vector4 oneVector;
230
231 // Token: 0x040003AA RID: 938
233
234 // Token: 0x040003AB RID: 939
236 }
237}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
override bool Equals(object other)
Definition Vector4.cs:42
Vector4(float x, float y, float z, float w)
Definition Vector4.cs:30
static readonly Vector4 zeroVector
Definition Vector4.cs:226
static bool operator==(Vector4 lhs, Vector4 rhs)
Definition Vector4.cs:158
static Vector4 one
Definition Vector4.cs:143
bool Equals(Vector4 other)
Definition Vector4.cs:68
override int GetHashCode()
Definition Vector4.cs:35
override string ToString()
Definition Vector4.cs:178
const float kEpsilon
Definition Vector4.cs:211
static Vector4 operator/(Vector4 a, float d)
Definition Vector4.cs:151
static readonly Vector4 positiveInfinityVector
Definition Vector4.cs:232
static Vector4 zero
Definition Vector4.cs:133
static readonly Vector4 negativeInfinityVector
Definition Vector4.cs:235
static readonly Vector4 oneVector
Definition Vector4.cs:229
static float Dot(Vector4 a, Vector4 b)
Definition Vector4.cs:94
string ToString(string format, IFormatProvider formatProvider)
Definition Vector4.cs:185