terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Quaternion.cs
Go to the documentation of this file.
1using System;
10
11namespace UnityEngine
12{
13 [NativeHeader("Runtime/Math/MathScripting.h")]
14 [DefaultMember("Item")]
15 [NativeType(Header = "Runtime/Math/Quaternion.h")]
18 [global::Cpp2ILInjected.Token(Token = "0x20000D0")]
19 public struct Quaternion : IEquatable<Quaternion>, IFormattable
20 {
21 [FreeFunction(IsThreadSafe = true)]
22 [global::Cpp2ILInjected.Token(Token = "0x6000411")]
23 [global::Cpp2ILInjected.Address(RVA = "0x1F82238", Offset = "0x1F82238", Length = "0x54")]
24 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
25 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "UnityEngine.UI.Selectable", Member = "FindSelectable", MemberParameters = new object[] { typeof(Vector3) }, ReturnType = "UnityEngine.UI.Selectable")]
26 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
27 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
28 public static Quaternion Inverse(Quaternion rotation)
29 {
30 throw null;
31 }
32
33 [FreeFunction("EulerToQuaternion", IsThreadSafe = true)]
34 [global::Cpp2ILInjected.Token(Token = "0x6000412")]
35 [global::Cpp2ILInjected.Address(RVA = "0x1F822D0", Offset = "0x1F822D0", Length = "0x54")]
36 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
37 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Newtonsoft.Json.Converters.QuaternionConverter", Member = "ReadJson", MemberParameters = new object[]
38 {
39 "Newtonsoft.Json.JsonReader",
40 typeof(Type),
41 typeof(object),
42 "Newtonsoft.Json.JsonSerializer"
43 }, ReturnType = typeof(object))]
44 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Quaternion), Member = "set_eulerAngles", MemberParameters = new object[] { typeof(Vector3) }, ReturnType = typeof(void))]
45 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
46 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
48 {
49 throw null;
50 }
51
52 [FreeFunction("QuaternionScripting::ToEuler", IsThreadSafe = true)]
53 [global::Cpp2ILInjected.Token(Token = "0x6000413")]
54 [global::Cpp2ILInjected.Address(RVA = "0x1F82368", Offset = "0x1F82368", Length = "0x58")]
55 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
56 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Newtonsoft.Json.Converters.QuaternionConverter", Member = "WriteJson", MemberParameters = new object[]
57 {
58 "Newtonsoft.Json.JsonWriter",
59 typeof(object),
60 "Newtonsoft.Json.JsonSerializer"
61 }, ReturnType = typeof(void))]
62 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Quaternion), Member = "get_eulerAngles", ReturnType = typeof(Vector3))]
63 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
64 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
65 private static Vector3 Internal_ToEulerRad(Quaternion rotation)
66 {
67 throw null;
68 }
69
70 [FreeFunction("QuaternionScripting::AngleAxis", IsThreadSafe = true)]
71 [global::Cpp2ILInjected.Token(Token = "0x6000414")]
72 [global::Cpp2ILInjected.Address(RVA = "0x1F82404", Offset = "0x1F82404", Length = "0x64")]
73 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
74 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "InControl.TouchControl", Member = "SnapTo", MemberParameters = new object[]
75 {
77 typeof(float)
78 }, ReturnType = typeof(Vector3))]
79 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
80 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
81 public static Quaternion AngleAxis(float angle, Vector3 axis)
82 {
83 throw null;
84 }
85
86 [global::Cpp2ILInjected.Token(Token = "0x6000415")]
87 [global::Cpp2ILInjected.Address(RVA = "0x1F824BC", Offset = "0x1F824BC", Length = "0xC")]
88 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
89 [MethodImpl(256)]
90 public Quaternion(float x, float y, float z, float w)
91 {
92 throw null;
93 }
94
95 [global::Cpp2ILInjected.Token(Token = "0x170000DD")]
96 public static Quaternion identity
97 {
98 [global::Cpp2ILInjected.Token(Token = "0x6000416")]
99 [global::Cpp2ILInjected.Address(RVA = "0x1F824C8", Offset = "0x1F824C8", Length = "0x4C")]
100 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
101 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
102 [MethodImpl(256)]
103 get
104 {
105 throw null;
106 }
107 }
108
109 [global::Cpp2ILInjected.Token(Token = "0x6000417")]
110 [global::Cpp2ILInjected.Address(RVA = "0x1F82514", Offset = "0x1F82514", Length = "0xA4")]
111 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "InControl.TouchControl", Member = "SnapTo", MemberParameters = new object[]
112 {
114 typeof(float)
115 }, ReturnType = typeof(Vector3))]
116 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Transform), Member = "get_forward", ReturnType = typeof(Vector3))]
117 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "UnityEngine.UI.GraphicRaycaster", Member = "Raycast", MemberParameters = new object[] { "UnityEngine.EventSystems.PointerEventData", "System.Collections.Generic.List`1<RaycastResult>" }, ReturnType = typeof(void))]
118 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "UnityEngine.UI.Selectable", Member = "FindSelectable", MemberParameters = new object[] { typeof(Vector3) }, ReturnType = "UnityEngine.UI.Selectable")]
119 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "UnityEngine.UI.Selectable", Member = "FindSelectableOnLeft", ReturnType = "UnityEngine.UI.Selectable")]
120 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "UnityEngine.UI.Selectable", Member = "FindSelectableOnRight", ReturnType = "UnityEngine.UI.Selectable")]
121 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "UnityEngine.UI.Selectable", Member = "FindSelectableOnUp", ReturnType = "UnityEngine.UI.Selectable")]
122 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "UnityEngine.UI.Selectable", Member = "FindSelectableOnDown", ReturnType = "UnityEngine.UI.Selectable")]
123 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "UnityEngine.RectTransformUtility", Member = "ScreenPointToWorldPointInRectangle", MemberParameters = new object[]
124 {
127 typeof(Camera),
129 }, ReturnType = typeof(bool))]
130 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 10)]
131 public static Vector3 operator *(Quaternion rotation, Vector3 point)
132 {
133 throw null;
134 }
135
136 [global::Cpp2ILInjected.Token(Token = "0x6000418")]
137 [global::Cpp2ILInjected.Address(RVA = "0x1F825B8", Offset = "0x1F825B8", Length = "0x14")]
138 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
139 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
140 [MethodImpl(256)]
141 private static bool IsEqualUsingDot(float dot)
142 {
143 throw null;
144 }
145
146 [global::Cpp2ILInjected.Token(Token = "0x6000419")]
147 [global::Cpp2ILInjected.Address(RVA = "0x1F825CC", Offset = "0x1F825CC", Length = "0x30")]
148 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
149 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
150 [MethodImpl(256)]
151 public static bool operator ==(Quaternion lhs, Quaternion rhs)
152 {
153 throw null;
154 }
155
156 [global::Cpp2ILInjected.Token(Token = "0x600041A")]
157 [global::Cpp2ILInjected.Address(RVA = "0x1F825FC", Offset = "0x1F825FC", Length = "0x30")]
158 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
159 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
160 [MethodImpl(256)]
161 public static bool operator !=(Quaternion lhs, Quaternion rhs)
162 {
163 throw null;
164 }
165
166 [global::Cpp2ILInjected.Token(Token = "0x600041B")]
167 [global::Cpp2ILInjected.Address(RVA = "0x1F8262C", Offset = "0x1F8262C", Length = "0x20")]
168 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
169 [MethodImpl(256)]
170 public static float Dot(Quaternion a, Quaternion b)
171 {
172 throw null;
173 }
174
175 [global::Cpp2ILInjected.Token(Token = "0x600041C")]
176 [global::Cpp2ILInjected.Address(RVA = "0x1F8264C", Offset = "0x1F8264C", Length = "0x88")]
177 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
178 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Newtonsoft.Json.Converters.QuaternionConverter", Member = "WriteJson", MemberParameters = new object[]
179 {
180 "Newtonsoft.Json.JsonWriter",
181 typeof(object),
182 "Newtonsoft.Json.JsonSerializer"
183 }, ReturnType = typeof(void))]
184 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Quaternion), Member = "get_eulerAngles", ReturnType = typeof(Vector3))]
185 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
187 {
188 throw null;
189 }
190
191 [global::Cpp2ILInjected.Token(Token = "0x170000DE")]
192 public Vector3 eulerAngles
193 {
194 [global::Cpp2ILInjected.Token(Token = "0x600041D")]
195 [global::Cpp2ILInjected.Address(RVA = "0x1F826D4", Offset = "0x1F826D4", Length = "0x2C")]
196 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
197 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Quaternion), Member = "Internal_ToEulerRad", MemberParameters = new object[] { typeof(Quaternion) }, ReturnType = typeof(Vector3))]
198 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Quaternion), Member = "Internal_MakePositive", MemberParameters = new object[] { typeof(Vector3) }, ReturnType = typeof(Vector3))]
199 [MethodImpl(256)]
200 get
201 {
202 throw null;
203 }
204 [global::Cpp2ILInjected.Token(Token = "0x600041E")]
205 [global::Cpp2ILInjected.Address(RVA = "0x1F82700", Offset = "0x1F82700", Length = "0x30")]
206 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
207 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Quaternion), Member = "Internal_FromEulerRad", MemberParameters = new object[] { typeof(Vector3) }, ReturnType = typeof(Quaternion))]
208 [MethodImpl(256)]
209 set
210 {
211 throw null;
212 }
213 }
214
215 [global::Cpp2ILInjected.Token(Token = "0x600041F")]
216 [global::Cpp2ILInjected.Address(RVA = "0x1F82730", Offset = "0x1F82730", Length = "0x64")]
217 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
218 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(float), Member = "GetHashCode", ReturnType = typeof(int))]
219 [MethodImpl(256)]
220 public override int GetHashCode()
221 {
222 throw null;
223 }
224
225 [global::Cpp2ILInjected.Token(Token = "0x6000420")]
226 [global::Cpp2ILInjected.Address(RVA = "0x1F82794", Offset = "0x1F82794", Length = "0xD4")]
227 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
228 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
229 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(float), Member = "Equals", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(bool))]
230 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
231 [MethodImpl(256)]
232 public override bool Equals(object other)
233 {
234 throw null;
235 }
236
237 [global::Cpp2ILInjected.Token(Token = "0x6000421")]
238 [global::Cpp2ILInjected.Address(RVA = "0x1F82868", Offset = "0x1F82868", Length = "0x80")]
239 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
240 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(float), Member = "Equals", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(bool))]
241 [MethodImpl(256)]
243 {
244 throw null;
245 }
246
247 [global::Cpp2ILInjected.Token(Token = "0x6000422")]
248 [global::Cpp2ILInjected.Address(RVA = "0x1F828E8", Offset = "0x1F828E8", Length = "0xC")]
249 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
250 public override string ToString()
251 {
252 throw null;
253 }
254
255 [global::Cpp2ILInjected.Token(Token = "0x6000423")]
256 [global::Cpp2ILInjected.Address(RVA = "0x1F828F4", Offset = "0x1F828F4", Length = "0x1CC")]
257 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
258 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
259 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "IsNullOrEmpty", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
260 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CultureInfo), Member = "get_InvariantCulture", ReturnType = typeof(CultureInfo))]
261 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(float), Member = "ToString", MemberParameters = new object[]
262 {
263 typeof(string),
265 }, ReturnType = typeof(string))]
266 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "UnityEngine.UnityString", Member = "Format", MemberParameters = new object[]
267 {
268 typeof(string),
269 typeof(object[])
270 }, ReturnType = typeof(string))]
271 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
273 {
274 throw null;
275 }
276
277 // Note: this type is marked as 'beforefieldinit'.
278 [global::Cpp2ILInjected.Token(Token = "0x6000424")]
279 [global::Cpp2ILInjected.Address(RVA = "0x1F82AC0", Offset = "0x1F82AC0", Length = "0x50")]
280 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
281 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
282 static Quaternion()
283 {
284 throw null;
285 }
286
287 [global::Cpp2ILInjected.Token(Token = "0x6000425")]
288 [global::Cpp2ILInjected.Address(RVA = "0x1F8228C", Offset = "0x1F8228C", Length = "0x44")]
289 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
290 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
291 [MethodImpl(4096)]
292 private static extern void Inverse_Injected(ref Quaternion rotation, out Quaternion ret);
293
294 [global::Cpp2ILInjected.Token(Token = "0x6000426")]
295 [global::Cpp2ILInjected.Address(RVA = "0x1F82324", Offset = "0x1F82324", Length = "0x44")]
296 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
297 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
298 [MethodImpl(4096)]
300
301 [global::Cpp2ILInjected.Token(Token = "0x6000427")]
302 [global::Cpp2ILInjected.Address(RVA = "0x1F823C0", Offset = "0x1F823C0", Length = "0x44")]
303 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
304 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
305 [MethodImpl(4096)]
306 private static extern void Internal_ToEulerRad_Injected(ref Quaternion rotation, out Vector3 ret);
307
308 [global::Cpp2ILInjected.Token(Token = "0x6000428")]
309 [global::Cpp2ILInjected.Address(RVA = "0x1F82468", Offset = "0x1F82468", Length = "0x54")]
310 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
311 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
312 [MethodImpl(4096)]
313 private static extern void AngleAxis_Injected(float angle, ref Vector3 axis, out Quaternion ret);
314
315 [global::Cpp2ILInjected.Token(Token = "0x40003C4")]
316 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
317 public float x;
318
319 [global::Cpp2ILInjected.Token(Token = "0x40003C5")]
320 [global::Cpp2ILInjected.FieldOffset(Offset = "0x4")]
321 public float y;
322
323 [global::Cpp2ILInjected.Token(Token = "0x40003C6")]
324 [global::Cpp2ILInjected.FieldOffset(Offset = "0x8")]
325 public float z;
326
327 [global::Cpp2ILInjected.Token(Token = "0x40003C7")]
328 [global::Cpp2ILInjected.FieldOffset(Offset = "0xC")]
329 public float w;
330
331 [global::Cpp2ILInjected.Token(Token = "0x40003C8")]
333 }
334}
class f__AnonymousType0<< Count > j__TPar
override int GetHashCode()
static Quaternion Internal_FromEulerRad(Vector3 euler)
Definition Quaternion.cs:47
static void AngleAxis_Injected(float angle, ref Vector3 axis, out Quaternion ret)
Quaternion(float x, float y, float z, float w)
Definition Quaternion.cs:90
static float Dot(Quaternion a, Quaternion b)
static Quaternion identity
Definition Quaternion.cs:97
bool Equals(Quaternion other)
override string ToString()
static void Inverse_Injected(ref Quaternion rotation, out Quaternion ret)
static Vector3 Internal_MakePositive(Vector3 euler)
string ToString(string format, IFormatProvider formatProvider)
static readonly Quaternion identityQuaternion
override bool Equals(object other)
static bool IsEqualUsingDot(float dot)
static void Internal_FromEulerRad_Injected(ref Vector3 euler, out Quaternion ret)
static void Internal_ToEulerRad_Injected(ref Quaternion rotation, out Vector3 ret)
static Quaternion Inverse(Quaternion rotation)
Definition Quaternion.cs:28
static Quaternion AngleAxis(float angle, Vector3 axis)
Definition Quaternion.cs:81
static Vector3 Internal_ToEulerRad(Quaternion rotation)
Definition Quaternion.cs:65