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
Vector2.cs
Go to the documentation of this file.
1using System;
8
9namespace UnityEngine
10{
11 [RequiredByNativeCode(Optional = true, GenerateProxy = true)]
12 [NativeClass("Vector2f")]
14 [global::Cpp2ILInjected.Token(Token = "0x20000C9")]
15 public struct Vector2 : IEquatable<Vector2>, IFormattable
16 {
17 [global::Cpp2ILInjected.Token(Token = "0x170000B8")]
18 public float this[int index]
19 {
20 [global::Cpp2ILInjected.Token(Token = "0x6000382")]
21 [global::Cpp2ILInjected.Address(RVA = "0x1F7ED3C", Offset = "0x1F7ED3C", Length = "0x68")]
22 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
23 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IndexOutOfRangeException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
25 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
26 [MethodImpl(256)]
27 get
28 {
29 throw null;
30 }
31 [global::Cpp2ILInjected.Token(Token = "0x6000383")]
32 [global::Cpp2ILInjected.Address(RVA = "0x1F7EDA4", Offset = "0x1F7EDA4", Length = "0x68")]
33 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
34 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
35 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IndexOutOfRangeException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
36 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
37 [MethodImpl(256)]
38 set
39 {
40 throw null;
41 }
42 }
43
44 [global::Cpp2ILInjected.Token(Token = "0x6000384")]
45 [global::Cpp2ILInjected.Address(RVA = "0x1F7EE0C", Offset = "0x1F7EE0C", Length = "0x8")]
46 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
47 [MethodImpl(256)]
48 public Vector2(float x, float y)
49 {
50 throw null;
51 }
52
53 [global::Cpp2ILInjected.Token(Token = "0x6000385")]
54 [global::Cpp2ILInjected.Address(RVA = "0x1F7EE14", Offset = "0x1F7EE14", Length = "0x30")]
55 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
56 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
57 [MethodImpl(256)]
58 public static Vector2 Lerp(Vector2 a, Vector2 b, float t)
59 {
60 throw null;
61 }
62
63 [global::Cpp2ILInjected.Token(Token = "0x6000386")]
64 [global::Cpp2ILInjected.Address(RVA = "0x1F7EE44", Offset = "0x1F7EE44", Length = "0xC")]
65 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
66 [MethodImpl(256)]
67 public static Vector2 Scale(Vector2 a, Vector2 b)
68 {
69 throw null;
70 }
71
72 [global::Cpp2ILInjected.Token(Token = "0x6000387")]
73 [global::Cpp2ILInjected.Address(RVA = "0x1F7EE50", Offset = "0x1F7EE50", Length = "0xC8")]
74 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
75 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
76 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
77 [MethodImpl(256)]
78 public void Normalize()
79 {
80 throw null;
81 }
82
83 [global::Cpp2ILInjected.Token(Token = "0x170000B9")]
85 {
86 [global::Cpp2ILInjected.Token(Token = "0x6000388")]
87 [global::Cpp2ILInjected.Address(RVA = "0x1F7EF18", Offset = "0x1F7EF18", Length = "0xB0")]
88 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
89 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
90 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
91 [MethodImpl(256)]
92 get
93 {
94 throw null;
95 }
96 }
97
98 [global::Cpp2ILInjected.Token(Token = "0x6000389")]
99 [global::Cpp2ILInjected.Address(RVA = "0x1F7EFC8", Offset = "0x1F7EFC8", Length = "0xC")]
100 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "InControl.TestInputManager", Member = "OnGUI", ReturnType = typeof(void))]
101 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "UnityEngine.EventSystems.PointerEventData", Member = "ToString", ReturnType = typeof(string))]
102 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "UnityEngine.EventSystems.RaycastResult", Member = "ToString", ReturnType = typeof(string))]
103 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "TouchExample.CubeController", Member = "OnGUI", ReturnType = typeof(void))]
104 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 8)]
105 public override string ToString()
106 {
107 throw null;
108 }
109
110 [global::Cpp2ILInjected.Token(Token = "0x600038A")]
111 [global::Cpp2ILInjected.Address(RVA = "0x1F7EFD4", Offset = "0x1F7EFD4", Length = "0x164")]
112 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
113 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
114 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "IsNullOrEmpty", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
115 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CultureInfo), Member = "get_InvariantCulture", ReturnType = typeof(CultureInfo))]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(float), Member = "ToString", MemberParameters = new object[]
117 {
118 typeof(string),
120 }, ReturnType = typeof(string))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "UnityEngine.UnityString", Member = "Format", MemberParameters = new object[]
122 {
123 typeof(string),
124 typeof(object[])
125 }, ReturnType = typeof(string))]
126 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
128 {
129 throw null;
130 }
131
132 [global::Cpp2ILInjected.Token(Token = "0x600038B")]
133 [global::Cpp2ILInjected.Address(RVA = "0x1F7F138", Offset = "0x1F7F138", Length = "0x34")]
134 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(float), Member = "GetHashCode", ReturnType = typeof(int))]
136 [MethodImpl(256)]
137 public override int GetHashCode()
138 {
139 throw null;
140 }
141
142 [global::Cpp2ILInjected.Token(Token = "0x600038C")]
143 [global::Cpp2ILInjected.Address(RVA = "0x1F7F16C", Offset = "0x1F7F16C", Length = "0x88")]
144 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
145 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
146 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
147 [MethodImpl(256)]
148 public override bool Equals(object other)
149 {
150 throw null;
151 }
152
153 [global::Cpp2ILInjected.Token(Token = "0x600038D")]
154 [global::Cpp2ILInjected.Address(RVA = "0x1F7F1F4", Offset = "0x1F7F1F4", Length = "0x24")]
155 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
156 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
157 [MethodImpl(256)]
158 public bool Equals(Vector2 other)
159 {
160 throw null;
161 }
162
163 [global::Cpp2ILInjected.Token(Token = "0x600038E")]
164 [global::Cpp2ILInjected.Address(RVA = "0x1F7F218", Offset = "0x1F7F218", Length = "0x10")]
165 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
166 [MethodImpl(256)]
167 public static float Dot(Vector2 lhs, Vector2 rhs)
168 {
169 throw null;
170 }
171
172 [global::Cpp2ILInjected.Token(Token = "0x170000BA")]
173 public float magnitude
174 {
175 [global::Cpp2ILInjected.Token(Token = "0x600038F")]
176 [global::Cpp2ILInjected.Address(RVA = "0x1F7F228", Offset = "0x1F7F228", Length = "0x6C")]
177 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
178 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
179 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
180 [MethodImpl(256)]
181 get
182 {
183 throw null;
184 }
185 }
186
187 [global::Cpp2ILInjected.Token(Token = "0x170000BB")]
188 public float sqrMagnitude
189 {
190 [global::Cpp2ILInjected.Token(Token = "0x6000390")]
191 [global::Cpp2ILInjected.Address(RVA = "0x1F7F294", Offset = "0x1F7F294", Length = "0x14")]
192 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
193 [MethodImpl(256)]
194 get
195 {
196 throw null;
197 }
198 }
199
200 [global::Cpp2ILInjected.Token(Token = "0x6000391")]
201 [global::Cpp2ILInjected.Address(RVA = "0x1F7F2A8", Offset = "0x1F7F2A8", Length = "0xF4")]
202 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
203 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
204 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
205 [MethodImpl(256)]
206 public static float Angle(Vector2 from, Vector2 to)
207 {
208 throw null;
209 }
210
211 [global::Cpp2ILInjected.Token(Token = "0x6000392")]
212 [global::Cpp2ILInjected.Address(RVA = "0x1F7F39C", Offset = "0x1F7F39C", Length = "0xC")]
213 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
214 [MethodImpl(256)]
215 public static Vector2 operator +(Vector2 a, Vector2 b)
216 {
217 throw null;
218 }
219
220 [global::Cpp2ILInjected.Token(Token = "0x6000393")]
221 [global::Cpp2ILInjected.Address(RVA = "0x1F7F3A8", Offset = "0x1F7F3A8", Length = "0xC")]
222 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
223 [MethodImpl(256)]
224 public static Vector2 operator -(Vector2 a, Vector2 b)
225 {
226 throw null;
227 }
228
229 [global::Cpp2ILInjected.Token(Token = "0x6000394")]
230 [global::Cpp2ILInjected.Address(RVA = "0x1F7F3B4", Offset = "0x1F7F3B4", Length = "0xC")]
231 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
232 [MethodImpl(256)]
233 public static Vector2 operator *(Vector2 a, Vector2 b)
234 {
235 throw null;
236 }
237
238 [global::Cpp2ILInjected.Token(Token = "0x6000395")]
239 [global::Cpp2ILInjected.Address(RVA = "0x1F7F3C0", Offset = "0x1F7F3C0", Length = "0xC")]
240 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
241 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
242 [MethodImpl(256)]
243 public static Vector2 operator /(Vector2 a, Vector2 b)
244 {
245 throw null;
246 }
247
248 [global::Cpp2ILInjected.Token(Token = "0x6000396")]
249 [global::Cpp2ILInjected.Address(RVA = "0x1F7F3CC", Offset = "0x1F7F3CC", Length = "0xC")]
250 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
251 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
252 [MethodImpl(256)]
253 public static Vector2 operator -(Vector2 a)
254 {
255 throw null;
256 }
257
258 [global::Cpp2ILInjected.Token(Token = "0x6000397")]
259 [global::Cpp2ILInjected.Address(RVA = "0x1F7F3D8", Offset = "0x1F7F3D8", Length = "0xC")]
260 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
261 [MethodImpl(256)]
262 public static Vector2 operator *(Vector2 a, float d)
263 {
264 throw null;
265 }
266
267 [global::Cpp2ILInjected.Token(Token = "0x6000398")]
268 [global::Cpp2ILInjected.Address(RVA = "0x1F7F3E4", Offset = "0x1F7F3E4", Length = "0xC")]
269 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
270 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
271 [MethodImpl(256)]
272 public static Vector2 operator /(Vector2 a, float d)
273 {
274 throw null;
275 }
276
277 [global::Cpp2ILInjected.Token(Token = "0x6000399")]
278 [global::Cpp2ILInjected.Address(RVA = "0x1F7F3F0", Offset = "0x1F7F3F0", Length = "0x28")]
279 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
280 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
281 [MethodImpl(256)]
282 public static bool operator ==(Vector2 lhs, Vector2 rhs)
283 {
284 throw null;
285 }
286
287 [global::Cpp2ILInjected.Token(Token = "0x600039A")]
288 [global::Cpp2ILInjected.Address(RVA = "0x1F7F418", Offset = "0x1F7F418", Length = "0x28")]
289 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
290 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
291 [MethodImpl(256)]
292 public static bool operator !=(Vector2 lhs, Vector2 rhs)
293 {
294 throw null;
295 }
296
297 [global::Cpp2ILInjected.Token(Token = "0x600039B")]
298 [global::Cpp2ILInjected.Address(RVA = "0x1F7F440", Offset = "0x1F7F440", Length = "0x4")]
299 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
300 [MethodImpl(256)]
301 public static implicit operator Vector2(Vector3 v)
302 {
303 throw null;
304 }
305
306 [global::Cpp2ILInjected.Token(Token = "0x600039C")]
307 [global::Cpp2ILInjected.Address(RVA = "0x1F7F444", Offset = "0x1F7F444", Length = "0x8")]
308 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
309 [MethodImpl(256)]
310 public static implicit operator Vector3(Vector2 v)
311 {
312 throw null;
313 }
314
315 [global::Cpp2ILInjected.Token(Token = "0x170000BC")]
316 public static Vector2 zero
317 {
318 [global::Cpp2ILInjected.Token(Token = "0x600039D")]
319 [global::Cpp2ILInjected.Address(RVA = "0x1F7F44C", Offset = "0x1F7F44C", Length = "0x48")]
320 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
321 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
322 [MethodImpl(256)]
323 get
324 {
325 throw null;
326 }
327 }
328
329 [global::Cpp2ILInjected.Token(Token = "0x170000BD")]
330 public static Vector2 one
331 {
332 [global::Cpp2ILInjected.Token(Token = "0x600039E")]
333 [global::Cpp2ILInjected.Address(RVA = "0x1F7F494", Offset = "0x1F7F494", Length = "0x48")]
334 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
335 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
336 [MethodImpl(256)]
337 get
338 {
339 throw null;
340 }
341 }
342
343 [global::Cpp2ILInjected.Token(Token = "0x170000BE")]
344 public static Vector2 up
345 {
346 [global::Cpp2ILInjected.Token(Token = "0x600039F")]
347 [global::Cpp2ILInjected.Address(RVA = "0x1F7F4DC", Offset = "0x1F7F4DC", Length = "0x48")]
348 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
349 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
350 [MethodImpl(256)]
351 get
352 {
353 throw null;
354 }
355 }
356
357 [global::Cpp2ILInjected.Token(Token = "0x170000BF")]
358 public static Vector2 right
359 {
360 [global::Cpp2ILInjected.Token(Token = "0x60003A0")]
361 [global::Cpp2ILInjected.Address(RVA = "0x1F7F524", Offset = "0x1F7F524", Length = "0x48")]
362 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
363 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
364 [MethodImpl(256)]
365 get
366 {
367 throw null;
368 }
369 }
370
371 // Note: this type is marked as 'beforefieldinit'.
372 [global::Cpp2ILInjected.Token(Token = "0x60003A1")]
373 [global::Cpp2ILInjected.Address(RVA = "0x1F7F56C", Offset = "0x1F7F56C", Length = "0xB4")]
374 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
375 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
376 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
377 static Vector2()
378 {
379 throw null;
380 }
381
382 [global::Cpp2ILInjected.Token(Token = "0x400037D")]
383 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
384 public float x;
385
386 [global::Cpp2ILInjected.Token(Token = "0x400037E")]
387 [global::Cpp2ILInjected.FieldOffset(Offset = "0x4")]
388 public float y;
389
390 [global::Cpp2ILInjected.Token(Token = "0x400037F")]
392
393 [global::Cpp2ILInjected.Token(Token = "0x4000380")]
394 private static readonly Vector2 oneVector;
395
396 [global::Cpp2ILInjected.Token(Token = "0x4000381")]
397 private static readonly Vector2 upVector;
398
399 [global::Cpp2ILInjected.Token(Token = "0x4000382")]
401
402 [global::Cpp2ILInjected.Token(Token = "0x4000383")]
404
405 [global::Cpp2ILInjected.Token(Token = "0x4000384")]
407
408 [global::Cpp2ILInjected.Token(Token = "0x4000385")]
410
411 [global::Cpp2ILInjected.Token(Token = "0x4000386")]
413
414 [global::Cpp2ILInjected.Token(Token = "0x4000387")]
415 public const float kEpsilon = 1E-05f;
416
417 [global::Cpp2ILInjected.Token(Token = "0x4000388")]
418 public const float kEpsilonNormalSqrt = 1E-15f;
419 }
420}
class f__AnonymousType0<< Count > j__TPar
override int GetHashCode()
Definition Vector2.cs:137
static readonly Vector2 oneVector
Definition Vector2.cs:394
static readonly Vector2 leftVector
Definition Vector2.cs:403
static readonly Vector2 rightVector
Definition Vector2.cs:406
Vector2 normalized
Definition Vector2.cs:85
bool Equals(Vector2 other)
Definition Vector2.cs:158
override string ToString()
Definition Vector2.cs:105
Vector2(float x, float y)
Definition Vector2.cs:48
static readonly Vector2 positiveInfinityVector
Definition Vector2.cs:409
string ToString(string format, IFormatProvider formatProvider)
Definition Vector2.cs:127
static readonly Vector2 zeroVector
Definition Vector2.cs:391
static readonly Vector2 upVector
Definition Vector2.cs:397
static Vector2 Lerp(Vector2 a, Vector2 b, float t)
Definition Vector2.cs:58
static readonly Vector2 negativeInfinityVector
Definition Vector2.cs:412
static Vector2 Scale(Vector2 a, Vector2 b)
Definition Vector2.cs:67
static float Dot(Vector2 lhs, Vector2 rhs)
Definition Vector2.cs:167
static readonly Vector2 downVector
Definition Vector2.cs:400
static float Angle(Vector2 from, Vector2 to)
Definition Vector2.cs:206
override bool Equals(object other)
Definition Vector2.cs:148