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
Quaternion.cs
Go to the documentation of this file.
1using System;
9
10namespace UnityEngine
11{
12 // Token: 0x020000D0 RID: 208
13 [NativeHeader("Runtime/Math/MathScripting.h")]
14 [DefaultMember("Item")]
15 [NativeType(Header = "Runtime/Math/Quaternion.h")]
18 public struct Quaternion : IEquatable<Quaternion>, IFormattable
19 {
20 // Token: 0x06000411 RID: 1041 RVA: 0x00007CFC File Offset: 0x00005EFC
21 [FreeFunction(IsThreadSafe = true)]
22 public static Quaternion Inverse(Quaternion rotation)
23 {
24 throw new MissingMethodException();
25 }
26
27 // Token: 0x06000412 RID: 1042 RVA: 0x00007D10 File Offset: 0x00005F10
28 [FreeFunction("EulerToQuaternion", IsThreadSafe = true)]
30 {
31 throw new MissingMethodException();
32 }
33
34 // Token: 0x06000413 RID: 1043 RVA: 0x00007D24 File Offset: 0x00005F24
35 [FreeFunction("QuaternionScripting::ToEuler", IsThreadSafe = true)]
36 private static Vector3 Internal_ToEulerRad(Quaternion rotation)
37 {
38 throw new MissingMethodException();
39 }
40
41 // Token: 0x06000414 RID: 1044 RVA: 0x00007D38 File Offset: 0x00005F38
42 [FreeFunction("QuaternionScripting::AngleAxis", IsThreadSafe = true)]
43 public static Quaternion AngleAxis(float angle, Vector3 axis)
44 {
45 throw new MissingMethodException();
46 }
47
48 // Token: 0x06000415 RID: 1045 RVA: 0x00007D4C File Offset: 0x00005F4C
49 public Quaternion(float x, float y, float z, float w)
50 {
51 }
52
53 // Token: 0x170000DD RID: 221
54 // (get) Token: 0x06000416 RID: 1046 RVA: 0x000021B3 File Offset: 0x000003B3
55 public static Quaternion identity
56 {
57 get
58 {
59 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
60 }
61 }
62
63 // Token: 0x06000417 RID: 1047 RVA: 0x00007D5C File Offset: 0x00005F5C
64 public static Vector3 operator *(Quaternion rotation, Vector3 point)
65 {
66 Vector3 vector;
67 return vector;
68 }
69
70 // Token: 0x06000418 RID: 1048 RVA: 0x000021B3 File Offset: 0x000003B3
71 private static bool IsEqualUsingDot(float dot)
72 {
73 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
74 }
75
76 // Token: 0x06000419 RID: 1049 RVA: 0x000021B3 File Offset: 0x000003B3
78 {
79 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
80 }
81
82 // Token: 0x0600041A RID: 1050 RVA: 0x000021B3 File Offset: 0x000003B3
84 {
85 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
86 }
87
88 // Token: 0x0600041B RID: 1051 RVA: 0x000021B3 File Offset: 0x000003B3
89 public static float Dot(Quaternion a, Quaternion b)
90 {
91 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
92 }
93
94 // Token: 0x0600041C RID: 1052 RVA: 0x00007D6C File Offset: 0x00005F6C
96 {
97 return 17332;
98 }
99
100 // Token: 0x170000DE RID: 222
101 // (get) Token: 0x0600041D RID: 1053 RVA: 0x00007D84 File Offset: 0x00005F84
102 // (set) Token: 0x0600041E RID: 1054 RVA: 0x00007DBC File Offset: 0x00005FBC
104 {
105 get
106 {
107 /*
108An exception occurred when decompiling this method (0600041D)
109
110ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Vector3 UnityEngine.Quaternion::get_eulerAngles()
111
112 ---> System.Exception: Basic block has to end with unconditional control flow.
113{
114 Block_0:
115 stloc:float32(var_0_06, ldfld:float32(Quaternion::x, ldloc:valuetype UnityEngine.Quaternion&(this)))
116 stloc:float32(var_1_0D, ldfld:float32(Quaternion::y, ldloc:valuetype UnityEngine.Quaternion&(this)))
117 stloc:float32(var_2_14, ldfld:float32(Quaternion::z, ldloc:valuetype UnityEngine.Quaternion&(this)))
118 stloc:float32(var_3_1B, ldfld:float32(Quaternion::w, ldloc:valuetype UnityEngine.Quaternion&(this)))
119 stloc:Vector3(var_4_27, call:Vector3(Quaternion::Internal_MakePositive, call:Vector3(Quaternion::Internal_ToEulerRad, ldloc:valuetype UnityEngine.Quaternion&[exp:Quaternion](this))))
120}
121
122 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
123 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
124 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
125 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
126 --- End of inner exception stack trace ---
127 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
128 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
129*/;
130 }
131 set
132 {
133 }
134 }
135
136 // Token: 0x0600041F RID: 1055 RVA: 0x00007DCC File Offset: 0x00005FCC
137 public override int GetHashCode()
138 {
139 int num;
140 return num;
141 }
142
143 // Token: 0x06000420 RID: 1056 RVA: 0x00007DDC File Offset: 0x00005FDC
144 public override bool Equals(object other)
145 {
146 if (other != null)
147 {
148 bool flag;
149 return flag;
150 }
151 }
152
153 // Token: 0x06000421 RID: 1057 RVA: 0x00007DF0 File Offset: 0x00005FF0
155 {
156 bool flag;
157 return flag;
158 }
159
160 // Token: 0x06000422 RID: 1058 RVA: 0x00007E04 File Offset: 0x00006004
161 public override string ToString()
162 {
163 string text;
164 return text;
165 }
166
167 // Token: 0x06000423 RID: 1059 RVA: 0x00007E14 File Offset: 0x00006014
169 {
170 bool flag = string.IsNullOrEmpty(format);
171 if (formatProvider == null)
172 {
174 }
175 string text;
176 string text2;
177 string text3;
178 string text4;
179 if ((text == null || text != null) && (text2 == null || text2 != null) && (text3 == null || text3 != null) && (text4 == null || text4 != null))
180 {
181 string text5;
182 return text5;
183 }
184 throw new ArrayTypeMismatchException();
185 }
186
187 // Token: 0x06000424 RID: 1060 RVA: 0x00007E60 File Offset: 0x00006060
188 // Note: this type is marked as 'beforefieldinit'.
189 static Quaternion()
190 {
191 }
192
193 // Token: 0x06000425 RID: 1061 RVA: 0x00007E70 File Offset: 0x00006070
194 private static void Inverse_Injected(Quaternion rotation, [Out] Quaternion ret)
195 {
196 throw new MissingMethodException();
197 }
198
199 // Token: 0x06000426 RID: 1062 RVA: 0x00007E84 File Offset: 0x00006084
201 {
202 throw new MissingMethodException();
203 }
204
205 // Token: 0x06000427 RID: 1063 RVA: 0x00007E98 File Offset: 0x00006098
206 private static void Internal_ToEulerRad_Injected(Quaternion rotation, [Out] Vector3 ret)
207 {
208 throw new MissingMethodException();
209 }
210
211 // Token: 0x06000428 RID: 1064 RVA: 0x00007EAC File Offset: 0x000060AC
212 private static void AngleAxis_Injected(float angle, Vector3 axis, [Out] Quaternion ret)
213 {
214 throw new MissingMethodException();
215 }
216
217 // Token: 0x040003C4 RID: 964
218 public float x;
219
220 // Token: 0x040003C5 RID: 965
221 public float y;
222
223 // Token: 0x040003C6 RID: 966
224 public float z;
225
226 // Token: 0x040003C7 RID: 967
227 public float w;
228
229 // Token: 0x040003C8 RID: 968
231 }
232}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
override int GetHashCode()
static Quaternion Internal_FromEulerRad(Vector3 euler)
Definition Quaternion.cs:29
Quaternion(float x, float y, float z, float w)
Definition Quaternion.cs:49
static float Dot(Quaternion a, Quaternion b)
Definition Quaternion.cs:89
static void Inverse_Injected(Quaternion rotation, [Out] Quaternion ret)
static bool operator==(Quaternion lhs, Quaternion rhs)
Definition Quaternion.cs:77
static Quaternion identity
Definition Quaternion.cs:56
bool Equals(Quaternion other)
override string ToString()
static Vector3 Internal_MakePositive(Vector3 euler)
Definition Quaternion.cs:95
static Vector3 operator*(Quaternion rotation, Vector3 point)
Definition Quaternion.cs:64
string ToString(string format, IFormatProvider formatProvider)
static readonly Quaternion identityQuaternion
override bool Equals(object other)
static void Internal_FromEulerRad_Injected(Vector3 euler, [Out] Quaternion ret)
static bool IsEqualUsingDot(float dot)
Definition Quaternion.cs:71
static void AngleAxis_Injected(float angle, Vector3 axis, [Out] Quaternion ret)
static void Internal_ToEulerRad_Injected(Quaternion rotation, [Out] Vector3 ret)
static bool operator!=(Quaternion lhs, Quaternion rhs)
Definition Quaternion.cs:83
static Quaternion Inverse(Quaternion rotation)
Definition Quaternion.cs:22
static Quaternion AngleAxis(float angle, Vector3 axis)
Definition Quaternion.cs:43
static Vector3 Internal_ToEulerRad(Quaternion rotation)
Definition Quaternion.cs:36