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
MathHelper.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000329 RID: 809
7 public static class MathHelper
8 {
9 // Token: 0x0600129D RID: 4765 RVA: 0x000021DB File Offset: 0x000003DB
10 public static float Barycentric(float value1, float value2, float value3, float amount1, float amount2)
11 {
12 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
13 }
14
15 // Token: 0x0600129E RID: 4766 RVA: 0x000021DB File Offset: 0x000003DB
16 public static float CatmullRom(float value1, float value2, float value3, float value4, float amount)
17 {
18 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
19 }
20
21 // Token: 0x0600129F RID: 4767 RVA: 0x000021DB File Offset: 0x000003DB
22 public static float Clamp(float value, float min, float max)
23 {
24 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
25 }
26
27 // Token: 0x060012A0 RID: 4768 RVA: 0x0005A23C File Offset: 0x0005843C
28 public static float Distance(float value1, float value2)
29 {
30 /*
31An exception occurred when decompiling this method (060012A0)
32
33ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.MathHelper::Distance(System.Single,System.Single)
34
35 ---> System.Exception: Basic block has to end with unconditional control flow.
36{
37 IL_0000:
38 brtrue(IL_0000, ldc.i4:bool(1))
39}
40
41 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
42 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
43 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
44 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
45 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
46 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
47 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
48 --- End of inner exception stack trace ---
49 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
50 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
51*/;
52 }
53
54 // Token: 0x060012A1 RID: 4769 RVA: 0x000021DB File Offset: 0x000003DB
55 public static float Hermite(float value1, float tangent1, float value2, float tangent2, float amount)
56 {
57 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
58 }
59
60 // Token: 0x060012A2 RID: 4770 RVA: 0x000021DB File Offset: 0x000003DB
61 public static float Lerp(float value1, float value2, float amount)
62 {
63 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
64 }
65
66 // Token: 0x060012A3 RID: 4771 RVA: 0x0005A24C File Offset: 0x0005844C
67 public static float Max(float value1, float value2)
68 {
69 if (!true)
70 {
71 return;
72 }
73 }
74
75 // Token: 0x060012A4 RID: 4772 RVA: 0x0005A260 File Offset: 0x00058460
76 public static float Min(float value1, float value2)
77 {
78 if (!true)
79 {
80 return;
81 }
82 }
83
84 // Token: 0x060012A5 RID: 4773 RVA: 0x000021DB File Offset: 0x000003DB
85 public static float SmoothStep(float value1, float value2, float amount)
86 {
87 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
88 }
89
90 // Token: 0x060012A6 RID: 4774 RVA: 0x000021DB File Offset: 0x000003DB
91 public static float ToDegrees(float radians)
92 {
93 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
94 }
95
96 // Token: 0x060012A7 RID: 4775 RVA: 0x000021DB File Offset: 0x000003DB
97 public static float ToRadians(float degrees)
98 {
99 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
100 }
101
102 // Token: 0x060012A8 RID: 4776 RVA: 0x0005A274 File Offset: 0x00058474
103 public static float WrapAngle(float angle)
104 {
105 if (!true)
106 {
107 return;
108 }
109 }
110
111 // Token: 0x0400224B RID: 8779
112 public const float E = 2.7182817f;
113
114 // Token: 0x0400224C RID: 8780
115 public const float Log10E = 0.4342945f;
116
117 // Token: 0x0400224D RID: 8781
118 public const float Log2E = 1.442695f;
119
120 // Token: 0x0400224E RID: 8782
121 public const float Pi = 3.1415927f;
122
123 // Token: 0x0400224F RID: 8783
124 public const float PiOver2 = 1.5707964f;
125
126 // Token: 0x04002250 RID: 8784
127 public const float PiOver4 = 0.7853982f;
128
129 // Token: 0x04002251 RID: 8785
130 public const float TwoPi = 6.2831855f;
131 }
132}
class f__AnonymousType0<< Count > j__TPar
static float Lerp(float value1, float value2, float amount)
Definition MathHelper.cs:61
static float ToDegrees(float radians)
Definition MathHelper.cs:91
static float WrapAngle(float angle)
static float CatmullRom(float value1, float value2, float value3, float value4, float amount)
Definition MathHelper.cs:16
static float Distance(float value1, float value2)
Definition MathHelper.cs:28
static float Max(float value1, float value2)
Definition MathHelper.cs:67
static float Barycentric(float value1, float value2, float value3, float amount1, float amount2)
Definition MathHelper.cs:10
static float ToRadians(float degrees)
Definition MathHelper.cs:97
static float SmoothStep(float value1, float value2, float amount)
Definition MathHelper.cs:85
static float Clamp(float value, float min, float max)
Definition MathHelper.cs:22
static float Min(float value1, float value2)
Definition MathHelper.cs:76
static float Hermite(float value1, float tangent1, float value2, float tangent2, float amount)
Definition MathHelper.cs:55