diff --git a/源代码/.Net/.vs/ProjectEvaluation/stgsharp.metadata.v5.1 b/源代码/.Net/.vs/ProjectEvaluation/stgsharp.metadata.v5.1 index 607355d2..e7201294 100644 Binary files a/源代码/.Net/.vs/ProjectEvaluation/stgsharp.metadata.v5.1 and b/源代码/.Net/.vs/ProjectEvaluation/stgsharp.metadata.v5.1 differ diff --git a/源代码/.Net/.vs/ProjectEvaluation/stgsharp.projects.v5.1 b/源代码/.Net/.vs/ProjectEvaluation/stgsharp.projects.v5.1 index 61666336..9b04dbc5 100644 Binary files a/源代码/.Net/.vs/ProjectEvaluation/stgsharp.projects.v5.1 and b/源代码/.Net/.vs/ProjectEvaluation/stgsharp.projects.v5.1 differ diff --git a/源代码/.Net/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2 b/源代码/.Net/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2 index 8e632535..9293ff98 100644 Binary files a/源代码/.Net/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2 and b/源代码/.Net/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2 differ diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/1bfba6c5-057b-4d30-8461-13dbc9faedfc.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/1bfba6c5-057b-4d30-8461-13dbc9faedfc.vsidx deleted file mode 100644 index 90e2a1b7..00000000 Binary files a/源代码/.Net/.vs/StgSharp/FileContentIndex/1bfba6c5-057b-4d30-8461-13dbc9faedfc.vsidx and /dev/null differ diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/3f80c49f-9ff1-4ff8-910f-3929b682bc8e.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/3f80c49f-9ff1-4ff8-910f-3929b682bc8e.vsidx new file mode 100644 index 00000000..52659fa1 Binary files /dev/null and b/源代码/.Net/.vs/StgSharp/FileContentIndex/3f80c49f-9ff1-4ff8-910f-3929b682bc8e.vsidx differ diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/4b7aac9c-a92f-42c1-bd0c-924d92beaf29.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/4b7aac9c-a92f-42c1-bd0c-924d92beaf29.vsidx new file mode 100644 index 00000000..1dbcd9e8 Binary files /dev/null and b/源代码/.Net/.vs/StgSharp/FileContentIndex/4b7aac9c-a92f-42c1-bd0c-924d92beaf29.vsidx differ diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/816f889f-f226-4917-8218-bef06f522086.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/816f889f-f226-4917-8218-bef06f522086.vsidx deleted file mode 100644 index 5751769d..00000000 Binary files a/源代码/.Net/.vs/StgSharp/FileContentIndex/816f889f-f226-4917-8218-bef06f522086.vsidx and /dev/null differ diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/8ee11e32-01e4-4327-b2a8-6001ee799e4b.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/8ee11e32-01e4-4327-b2a8-6001ee799e4b.vsidx deleted file mode 100644 index 9dfdae51..00000000 Binary files a/源代码/.Net/.vs/StgSharp/FileContentIndex/8ee11e32-01e4-4327-b2a8-6001ee799e4b.vsidx and /dev/null differ diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/8fbcd803-fe1a-4a0a-8305-805ae0d96726.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/8fbcd803-fe1a-4a0a-8305-805ae0d96726.vsidx deleted file mode 100644 index ba7eac20..00000000 Binary files a/源代码/.Net/.vs/StgSharp/FileContentIndex/8fbcd803-fe1a-4a0a-8305-805ae0d96726.vsidx and /dev/null differ diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/963a0646-af8f-4b53-8a7d-931faac5ec1e.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/963a0646-af8f-4b53-8a7d-931faac5ec1e.vsidx new file mode 100644 index 00000000..ee1e8375 Binary files /dev/null and b/源代码/.Net/.vs/StgSharp/FileContentIndex/963a0646-af8f-4b53-8a7d-931faac5ec1e.vsidx differ diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/9767babd-b24b-4233-91a4-9644e0d2d644.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/9767babd-b24b-4233-91a4-9644e0d2d644.vsidx new file mode 100644 index 00000000..6a504d60 Binary files /dev/null and b/源代码/.Net/.vs/StgSharp/FileContentIndex/9767babd-b24b-4233-91a4-9644e0d2d644.vsidx differ diff --git a/源代码/.Net/.vs/StgSharp/v17/.futdcache.v2 b/源代码/.Net/.vs/StgSharp/v17/.futdcache.v2 index c814cfe2..e792fc13 100644 Binary files a/源代码/.Net/.vs/StgSharp/v17/.futdcache.v2 and b/源代码/.Net/.vs/StgSharp/v17/.futdcache.v2 differ diff --git a/源代码/.Net/.vs/StgSharp/v17/.suo b/源代码/.Net/.vs/StgSharp/v17/.suo index dac49628..f7938eac 100644 Binary files a/源代码/.Net/.vs/StgSharp/v17/.suo and b/源代码/.Net/.vs/StgSharp/v17/.suo differ diff --git a/源代码/.Net/StgSharp/Math/ACos.cs b/源代码/.Net/StgSharp/Math/ACos.cs index 7a6290ef..1bb31d21 100644 --- a/源代码/.Net/StgSharp/Math/ACos.cs +++ b/源代码/.Net/StgSharp/Math/ACos.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Text; -namespace StgSharp +namespace StgSharp.Math { - public static unsafe partial class Math + public static unsafe partial class Calc { @@ -69,9 +69,9 @@ namespace StgSharp v = y + y * u; }/**/ - v = sign * v * 90 / piby2; + v = sign * v ; - return 90-v; + return piby2 - v; } } } diff --git a/源代码/.Net/StgSharp/Math/ASin.cs b/源代码/.Net/StgSharp/Math/ASin.cs index e322be88..9ed261d6 100644 --- a/源代码/.Net/StgSharp/Math/ASin.cs +++ b/源代码/.Net/StgSharp/Math/ASin.cs @@ -1,6 +1,4 @@ -// -// -// some of the code is rewritten from the AMD code: +// some of the code is rewritten from the AMD code: // https://github.com/amd/aocl-libm-ose/blob/a43e092b03213eb0e129a1cc129900e6e4475778/src/ref/asinf.c @@ -8,9 +6,10 @@ using System; using System.Collections.Generic; using System.Text; -namespace StgSharp + +namespace StgSharp.Math { - public static unsafe partial class Math + public static unsafe partial class Calc { private const float @@ -22,7 +21,7 @@ namespace StgSharp /// /// Reurns the value of ArcSin(x) /// - /// + /// The sine value of the angle /// /// public static float ASin(float x ) @@ -86,8 +85,93 @@ namespace StgSharp v = y + y * u; }/**/ - return sign * v * 90 / piby2; + return sign * v; } + + + /// + /// Returns the angle whose sine is the quotient of two specified numbers. + /// + /// The x coordinate of a point. + /// The y coordinate of a point. + /// + /// + public static unsafe float ASin(float x, float y) + { + bool isXNeg = (x < 0); + if (isXNeg) + { + x = -x; + } + float z = y /StgSharp.Math.Sqrt(x * x + y * y); + + + + int sign = 1; + float t; + + if (z < 0) + { + sign = -1; + t = -z; + } + else + { + t = z; + } + + if (z > 1) + { + throw new ArgumentException(); + } + + float r, s, u, v = 0.0f; + bool transform = (t >= 0.5f); + + if (transform) + { + r = 0.5f * (1.0f - t); + s = StgSharp.Math.Sqrt(r); + t = s; + } + else + { + r = t * t; + } + u = r * (0.184161606965100694821398249421F + + (-0.0565298683201845211985026327361F + + (-0.0133819288943925804214011424456F - + 0.00396137437848476485201154797087F * r) * r) * r) / + (1.10496961524520294485512696706F - + 0.836411276854206731913362287293F * r); + /**/ + + if (transform) + { + float c, s1, p, q; + uint us; + + us = *(uint*)&s; + uint uss = us & 0xffff0000; + s1 = *(float*)&uss; + + c = (r - s1 * s1) / (s + s1); + p = 2.0F * s * u - (piby2_tail - 2.0F * c); + q = hpiby2_head - 2.0F * s1; + v = hpiby2_head - (p - q); + } + else + { + v = t + t * u; + }/**/ + + if (isXNeg) + { + v = piby2 - x; + } + + return sign * v; + } } } diff --git a/源代码/.Net/StgSharp/Math/BasicOps.cs b/源代码/.Net/StgSharp/Math/BasicOps.cs new file mode 100644 index 00000000..0cb76e65 --- /dev/null +++ b/源代码/.Net/StgSharp/Math/BasicOps.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Runtime.CompilerServices; +using System.Text; +using System.Numerics; + +namespace StgSharp.Math +{ + public static unsafe partial class Calc + { + + public static unsafe bool Equals(T left,T right) + where T : notnull + { + if (typeof(T) == typeof(float)) + { + return left.Equals(right); + } + } + } +} diff --git a/源代码/.Net/StgSharp/Math/Cos.cs b/源代码/.Net/StgSharp/Math/Cos.cs index 0ea99d07..c0360ecc 100644 --- a/源代码/.Net/StgSharp/Math/Cos.cs +++ b/源代码/.Net/StgSharp/Math/Cos.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Text; -namespace StgSharp +namespace StgSharp.Math { - public static partial class Math + public static partial class Calc { public static float Cos(float x) diff --git a/源代码/.Net/StgSharp/Math/Exp.cs b/源代码/.Net/StgSharp/Math/Exp.cs index 340b37e7..1e4323d1 100644 --- a/源代码/.Net/StgSharp/Math/Exp.cs +++ b/源代码/.Net/StgSharp/Math/Exp.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Text; -namespace StgSharp +namespace StgSharp.Math { - public static unsafe partial class Math + public static unsafe partial class Calc { public const float E = 2.718281828f; diff --git a/源代码/.Net/StgSharp/Math/GetBits32.cs b/源代码/.Net/StgSharp/Math/GetBits32.cs index edba6467..2673c8c0 100644 --- a/源代码/.Net/StgSharp/Math/GetBits32.cs +++ b/源代码/.Net/StgSharp/Math/GetBits32.cs @@ -2,11 +2,9 @@ using System.Collections.Generic; using System.Text; -namespace StgSharp +namespace StgSharp.Math { - - - public static unsafe partial class Math + public static unsafe partial class Calc { /// diff --git a/源代码/.Net/StgSharp/Math/Log.cs b/源代码/.Net/StgSharp/Math/Log.cs index 5a38f96c..50b5505e 100644 --- a/源代码/.Net/StgSharp/Math/Log.cs +++ b/源代码/.Net/StgSharp/Math/Log.cs @@ -4,12 +4,9 @@ using System.Net.Sockets; using System.Text; using static System.Net.WebRequestMethods; -namespace StgSharp +namespace StgSharp.Math { - - - - public static partial class Math + public static partial class Calc { static private readonly float[] logArray = diff --git a/源代码/.Net/StgSharp/Math/Pow.cs b/源代码/.Net/StgSharp/Math/Pow.cs index a88b9159..54ce270f 100644 --- a/源代码/.Net/StgSharp/Math/Pow.cs +++ b/源代码/.Net/StgSharp/Math/Pow.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Text; -namespace StgSharp +namespace StgSharp.Math { - public static unsafe partial class Math + public static unsafe partial class Calc { /// /// calculate the value of x^y @@ -35,7 +35,7 @@ namespace StgSharp { return 1.0f / 0; } - z = StgSharp.Math.Log(x) * y; + z = StgSharp.Math.Calc.Log(x) * y; bool sign = false; if (z < 0) diff --git a/源代码/.Net/StgSharp/Math/Sin.cs b/源代码/.Net/StgSharp/Math/Sin.cs index 24753133..6bbc6b19 100644 --- a/源代码/.Net/StgSharp/Math/Sin.cs +++ b/源代码/.Net/StgSharp/Math/Sin.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Text; -namespace StgSharp +namespace StgSharp.Math { - public static partial class Math + public static partial class Calc { private static readonly float[] sinData = { diff --git a/源代码/.Net/StgSharp/Math/Sqrt.cs b/源代码/.Net/StgSharp/Math/Sqrt.cs index 740fa82b..fa41e7c1 100644 --- a/源代码/.Net/StgSharp/Math/Sqrt.cs +++ b/源代码/.Net/StgSharp/Math/Sqrt.cs @@ -3,9 +3,9 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Text; -namespace StgSharp +namespace StgSharp.Math { - public static partial class Math + public static partial class Clac { /*本方法将小数部分统一提升至2^16处后进行线性近似 const uint sqmov = 0b_0100_0111_1000_0000_0000_0000_0000_0000; diff --git a/源代码/.Net/StgSharp/Math/Tan.cs b/源代码/.Net/StgSharp/Math/Tan.cs index ccea7a1b..8cefd2b5 100644 --- a/源代码/.Net/StgSharp/Math/Tan.cs +++ b/源代码/.Net/StgSharp/Math/Tan.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Text; -namespace StgSharp +namespace StgSharp.Math { - public static partial class Math + public static partial class Calc { public static float Tan(float x) diff --git a/源代码/.Net/StgSharp/StgSharp.csproj b/源代码/.Net/StgSharp/StgSharp.csproj index 05c8a3b7..3215cdd1 100644 --- a/源代码/.Net/StgSharp/StgSharp.csproj +++ b/源代码/.Net/StgSharp/StgSharp.csproj @@ -14,6 +14,7 @@ + diff --git a/源代码/.Net/StgSharp/Vector/Vec2x1.cs b/源代码/.Net/StgSharp/Vector/Vec2x1.cs new file mode 100644 index 00000000..ee5f3fb8 --- /dev/null +++ b/源代码/.Net/StgSharp/Vector/Vec2x1.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace StgSharp.Vector +{ + public struct Vec2x1:IEquatable + { + float a1; + float a2; + + public Vec2x1(float x,float y) + { + a1 = x; + a2 = y; + } + + public bool Equals(Vec2x1 other) + { + return true; + } + + + public static bool operator ==(Vec2x1 vec1, Vec2x1 vec2) + { + return true; + } + + public static bool operator !=(Vec2x1 vec1, Vec2x1 vec2) + { + return false; + } + } +} diff --git a/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.deps.json b/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.deps.json index d6ff2e78..b0e5d940 100644 --- a/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.deps.json +++ b/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.deps.json @@ -10,7 +10,8 @@ "StgSharp/1.0.0": { "dependencies": { "GLFWDotNet": "20.9.0", - "Microsoft.CSharp": "4.7.0" + "Microsoft.CSharp": "4.7.0", + "Steamworks.NET": "20.1.0" }, "runtime": { "StgSharp.dll": {} @@ -31,6 +32,14 @@ "fileVersion": "4.700.19.56404" } } + }, + "Steamworks.NET/20.1.0": { + "runtime": { + "lib/netstandard2.1/Steamworks.NET.dll": { + "assemblyVersion": "20.1.0.0", + "fileVersion": "20.1.0.0" + } + } } } }, @@ -53,6 +62,13 @@ "sha512": "sha512-pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==", "path": "microsoft.csharp/4.7.0", "hashPath": "microsoft.csharp.4.7.0.nupkg.sha512" + }, + "Steamworks.NET/20.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-+GntwnyJ5tCNvUIaQxv2+ehDvZJzGUqlSB5xRBk1hTj1qqBJ6s4vK/OfGD/jae7aTmXiGSm8wpJORosNtQevJQ==", + "path": "steamworks.net/20.1.0", + "hashPath": "steamworks.net.20.1.0.nupkg.sha512" } } } \ No newline at end of file diff --git a/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll b/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll index 4a5b00bf..d6978acb 100644 Binary files a/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll and b/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll differ diff --git a/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.pdb b/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.pdb index 565c1b79..46baf83f 100644 Binary files a/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.pdb and b/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.pdb differ diff --git a/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.xml b/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.xml index 6e4ab8af..fffdd5aa 100644 --- a/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.xml +++ b/源代码/.Net/StgSharp/bin/Debug/netstandard2.1/StgSharp.xml @@ -8,7 +8,16 @@ Reurns the value of ArcSin(x) - + The sine value of the angle + + + + + + Returns the angle whose sine is the quotient of two specified numbers. + + The x coordinate of a point. + The y coordinate of a point. diff --git a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.assets.cache b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.assets.cache index 65ae2ac6..00da35ca 100644 Binary files a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.assets.cache and b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.assets.cache differ diff --git a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.AssemblyReference.cache b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.AssemblyReference.cache index e64d317c..e075505a 100644 Binary files a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.AssemblyReference.cache and b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.AssemblyReference.cache differ diff --git a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.CoreCompileInputs.cache b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.CoreCompileInputs.cache index 21d78cf3..32696902 100644 --- a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.CoreCompileInputs.cache +++ b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -57d2afd7a707b689bdeb3640509f8f39355cee04 +250cbfc0c4767a021cac96a098e779bd97d9c232 diff --git a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll index 4a5b00bf..d6978acb 100644 Binary files a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll and b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll differ diff --git a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.pdb b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.pdb index 565c1b79..46baf83f 100644 Binary files a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.pdb and b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.pdb differ diff --git a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.xml b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.xml index 6e4ab8af..fffdd5aa 100644 --- a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.xml +++ b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/StgSharp.xml @@ -8,7 +8,16 @@ Reurns the value of ArcSin(x) - + The sine value of the angle + + + + + + Returns the angle whose sine is the quotient of two specified numbers. + + The x coordinate of a point. + The y coordinate of a point. diff --git a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll index 309595cf..57533405 100644 Binary files a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll and b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll differ diff --git a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll index 309595cf..57533405 100644 Binary files a/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll and b/源代码/.Net/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll differ diff --git a/源代码/.Net/StgSharp/obj/StgSharp.csproj.nuget.dgspec.json b/源代码/.Net/StgSharp/obj/StgSharp.csproj.nuget.dgspec.json index f4af6f50..f0e5a258 100644 --- a/源代码/.Net/StgSharp/obj/StgSharp.csproj.nuget.dgspec.json +++ b/源代码/.Net/StgSharp/obj/StgSharp.csproj.nuget.dgspec.json @@ -52,6 +52,10 @@ "Microsoft.CSharp": { "target": "Package", "version": "[4.7.0, )" + }, + "Steamworks.NET": { + "target": "Package", + "version": "[20.1.0, )" } }, "imports": [ diff --git a/源代码/.Net/StgSharp/obj/project.assets.json b/源代码/.Net/StgSharp/obj/project.assets.json index f9821116..e8323367 100644 --- a/源代码/.Net/StgSharp/obj/project.assets.json +++ b/源代码/.Net/StgSharp/obj/project.assets.json @@ -33,6 +33,41 @@ "related": ".xml" } } + }, + "Steamworks.NET/20.1.0": { + "type": "package", + "compile": { + "ref/netstandard2.1/Steamworks.NET.dll": {} + }, + "runtime": { + "lib/netstandard2.1/Steamworks.NET.dll": {} + }, + "runtimeTargets": { + "runtimes/linux-x64/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "linux-x64" + }, + "runtimes/linux-x86/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "linux-x86" + }, + "runtimes/osx-x64/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "osx-x64" + }, + "runtimes/osx-x86/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "osx-x86" + }, + "runtimes/win-x64/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "win-x64" + }, + "runtimes/win-x86/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "win-x86" + } + } } } }, @@ -121,12 +156,33 @@ "useSharedDesignerContext.txt", "version.txt" ] + }, + "Steamworks.NET/20.1.0": { + "sha512": "+GntwnyJ5tCNvUIaQxv2+ehDvZJzGUqlSB5xRBk1hTj1qqBJ6s4vK/OfGD/jae7aTmXiGSm8wpJORosNtQevJQ==", + "type": "package", + "path": "steamworks.net/20.1.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/netstandard2.1/Steamworks.NET.dll", + "readme.md", + "ref/netstandard2.1/Steamworks.NET.dll", + "runtimes/linux-x64/lib/netstandard2.1/Steamworks.NET.dll", + "runtimes/linux-x86/lib/netstandard2.1/Steamworks.NET.dll", + "runtimes/osx-x64/lib/netstandard2.1/Steamworks.NET.dll", + "runtimes/osx-x86/lib/netstandard2.1/Steamworks.NET.dll", + "runtimes/win-x64/lib/netstandard2.1/Steamworks.NET.dll", + "runtimes/win-x86/lib/netstandard2.1/Steamworks.NET.dll", + "steamworks.net.20.1.0.nupkg.sha512", + "steamworks.net.nuspec" + ] } }, "projectFileDependencyGroups": { ".NETStandard,Version=v2.1": [ "GLFWDotNet >= 20.9.0", - "Microsoft.CSharp >= 4.7.0" + "Microsoft.CSharp >= 4.7.0", + "Steamworks.NET >= 20.1.0" ] }, "packageFolders": { @@ -181,6 +237,10 @@ "Microsoft.CSharp": { "target": "Package", "version": "[4.7.0, )" + }, + "Steamworks.NET": { + "target": "Package", + "version": "[20.1.0, )" } }, "imports": [ diff --git a/源代码/.Net/StgSharp/obj/project.nuget.cache b/源代码/.Net/StgSharp/obj/project.nuget.cache index 0b2f2303..fdd8fca1 100644 --- a/源代码/.Net/StgSharp/obj/project.nuget.cache +++ b/源代码/.Net/StgSharp/obj/project.nuget.cache @@ -1,11 +1,12 @@ { "version": 2, - "dgSpecHash": "jWVPLGMPic807+4NLpG1k4UvkHQcYelA2LmqZ1AT677bAmBrCawrGC32ML8FV5TygCjZ4mzeLqdcYpsF82f61A==", + "dgSpecHash": "D2b6GMfOY4aZxUai0LnRuWyULH+CEG98xFRXi9OAg3hVh5QYpI8wa9Penb+96fBCHHpWEQ22IzA65zYWs4fy2g==", "success": true, "projectFilePath": "D:\\NitloadIndustry\\研究项目\\1-Flagship\\TH2020\\ProjectFile\\源代码\\.Net\\StgSharp\\StgSharp.csproj", "expectedPackageFiles": [ "C:\\Users\\Nitlo\\.nuget\\packages\\glfwdotnet\\20.9.0\\glfwdotnet.20.9.0.nupkg.sha512", - "C:\\Users\\Nitlo\\.nuget\\packages\\microsoft.csharp\\4.7.0\\microsoft.csharp.4.7.0.nupkg.sha512" + "C:\\Users\\Nitlo\\.nuget\\packages\\microsoft.csharp\\4.7.0\\microsoft.csharp.4.7.0.nupkg.sha512", + "C:\\Users\\Nitlo\\.nuget\\packages\\steamworks.net\\20.1.0\\steamworks.net.20.1.0.nupkg.sha512" ], "logs": [] } \ No newline at end of file diff --git a/源代码/.Net/StgSharpDebug/Program.cs b/源代码/.Net/StgSharpDebug/Program.cs index 12deac90..6480eaee 100644 --- a/源代码/.Net/StgSharpDebug/Program.cs +++ b/源代码/.Net/StgSharpDebug/Program.cs @@ -12,7 +12,7 @@ internal class Program /**/ /* - float test = StgSharp.Math.ACos(0.5f); + float test = StgSharp.Math.Calc.ATan(-1f,-1f); Console.WriteLine(test); /**/ @@ -26,7 +26,7 @@ internal class Program stopwatch.Start(); // 开始监视代码运行时间 for (float i = 2; i < time; i++) { - a = StgSharp.Math.ACos(i/500000-1); + a = StgSharp.Math.ATan(i); } stopwatch.Stop(); // 停止监视 TimeSpan timespan = stopwatch.Elapsed; // 获取当前实例测量得出的总时间 @@ -40,7 +40,7 @@ internal class Program stopwatch1.Start(); for (float i = 2; i < time2; i++) { - b = System.MathF.Acos(i / 500000 - 1); + b = System.MathF.Atan(i); } stopwatch1.Stop(); timespan = stopwatch1.Elapsed; @@ -54,11 +54,11 @@ internal class Program /* //精度测试 double accuracy = 0; - for (float i = -10f; i < 200f; i += 0.01f) + for (float i = -200f; i < 200f; i += 0.01f) { - double r1 = StgSharp.Math.ACos(i/100); - double r2 = 180*System.Math.Acos(i/100)/3.1415926; + double r1 = StgSharp.Math.ATan(i); + double r2 = 180*System.Math.Atan(i)/3.1415926; double ac = ( System.Math.Max(r1,r2)- System.Math.Min(r1, r2) ) / r2; if (ac>accuracy) { diff --git a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.dll b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.dll index 4a5b00bf..d6978acb 100644 Binary files a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.dll and b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.dll differ diff --git a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.pdb b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.pdb index 565c1b79..46baf83f 100644 Binary files a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.pdb and b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.pdb differ diff --git a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.xml b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.xml index 6e4ab8af..fffdd5aa 100644 --- a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.xml +++ b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharp.xml @@ -8,7 +8,16 @@ Reurns the value of ArcSin(x) - + The sine value of the angle + + + + + + Returns the angle whose sine is the quotient of two specified numbers. + + The x coordinate of a point. + The y coordinate of a point. diff --git a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.deps.json b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.deps.json index 3f2f814e..d3525556 100644 --- a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.deps.json +++ b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.deps.json @@ -35,10 +35,57 @@ } }, "Microsoft.CSharp/4.7.0": {}, + "Steamworks.NET/20.1.0": { + "runtime": { + "lib/netstandard2.1/Steamworks.NET.dll": { + "assemblyVersion": "20.1.0.0", + "fileVersion": "20.1.0.0" + } + }, + "runtimeTargets": { + "runtimes/linux-x64/lib/netstandard2.1/Steamworks.NET.dll": { + "rid": "linux-x64", + "assetType": "runtime", + "assemblyVersion": "20.1.0.0", + "fileVersion": "20.1.0.0" + }, + "runtimes/linux-x86/lib/netstandard2.1/Steamworks.NET.dll": { + "rid": "linux-x86", + "assetType": "runtime", + "assemblyVersion": "20.1.0.0", + "fileVersion": "20.1.0.0" + }, + "runtimes/osx-x64/lib/netstandard2.1/Steamworks.NET.dll": { + "rid": "osx-x64", + "assetType": "runtime", + "assemblyVersion": "20.1.0.0", + "fileVersion": "20.1.0.0" + }, + "runtimes/osx-x86/lib/netstandard2.1/Steamworks.NET.dll": { + "rid": "osx-x86", + "assetType": "runtime", + "assemblyVersion": "20.1.0.0", + "fileVersion": "20.1.0.0" + }, + "runtimes/win-x64/lib/netstandard2.1/Steamworks.NET.dll": { + "rid": "win-x64", + "assetType": "runtime", + "assemblyVersion": "20.1.0.0", + "fileVersion": "20.1.0.0" + }, + "runtimes/win-x86/lib/netstandard2.1/Steamworks.NET.dll": { + "rid": "win-x86", + "assetType": "runtime", + "assemblyVersion": "20.1.0.0", + "fileVersion": "20.1.0.0" + } + } + }, "StgSharp/1.0.0": { "dependencies": { "GLFWDotNet": "20.9.0", - "Microsoft.CSharp": "4.7.0" + "Microsoft.CSharp": "4.7.0", + "Steamworks.NET": "20.1.0" }, "runtime": { "StgSharp.dll": {} @@ -66,6 +113,13 @@ "path": "microsoft.csharp/4.7.0", "hashPath": "microsoft.csharp.4.7.0.nupkg.sha512" }, + "Steamworks.NET/20.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-+GntwnyJ5tCNvUIaQxv2+ehDvZJzGUqlSB5xRBk1hTj1qqBJ6s4vK/OfGD/jae7aTmXiGSm8wpJORosNtQevJQ==", + "path": "steamworks.net/20.1.0", + "hashPath": "steamworks.net.20.1.0.nupkg.sha512" + }, "StgSharp/1.0.0": { "type": "project", "serviceable": false, diff --git a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.dll b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.dll index c21cdef2..05ad2259 100644 Binary files a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.dll and b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.dll differ diff --git a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.pdb b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.pdb index 074d7ba1..336e4130 100644 Binary files a/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.pdb and b/源代码/.Net/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.pdb differ diff --git a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.assets.cache b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.assets.cache index 70920dc7..3e1b4780 100644 Binary files a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.assets.cache and b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.assets.cache differ diff --git a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.AssemblyReference.cache b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.AssemblyReference.cache index 399695e3..401e9989 100644 Binary files a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.AssemblyReference.cache and b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.AssemblyReference.cache differ diff --git a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.CoreCompileInputs.cache b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.CoreCompileInputs.cache index 1dd64997..6e555dbe 100644 --- a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.CoreCompileInputs.cache +++ b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -5d1cbce510d586a87de47050a99b6389447d8e1e +3655dd388a44aa06ff12e220d674702ff529842b diff --git a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.FileListAbsolute.txt b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.FileListAbsolute.txt index 20da0ed4..6602888d 100644 --- a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.FileListAbsolute.txt +++ b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.FileListAbsolute.txt @@ -41,3 +41,10 @@ D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\.Net\Stg D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\.Net\StgSharpDebug\obj\Debug\net6.0\StgSharpDebug.csproj.CopyComplete D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\.Net\StgSharpDebug\obj\Debug\net6.0\StgSharpDebug.genruntimeconfig.cache D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\.Net\StgSharpDebug\obj\Debug\net6.0\ref\StgSharpDebug.dll +D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\.Net\StgSharpDebug\bin\Debug\net6.0\Steamworks.NET.dll +D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\.Net\StgSharpDebug\bin\Debug\net6.0\runtimes\linux-x64\lib\netstandard2.1\Steamworks.NET.dll +D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\.Net\StgSharpDebug\bin\Debug\net6.0\runtimes\linux-x86\lib\netstandard2.1\Steamworks.NET.dll +D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\.Net\StgSharpDebug\bin\Debug\net6.0\runtimes\osx-x64\lib\netstandard2.1\Steamworks.NET.dll +D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\.Net\StgSharpDebug\bin\Debug\net6.0\runtimes\osx-x86\lib\netstandard2.1\Steamworks.NET.dll +D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\.Net\StgSharpDebug\bin\Debug\net6.0\runtimes\win-x64\lib\netstandard2.1\Steamworks.NET.dll +D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\.Net\StgSharpDebug\bin\Debug\net6.0\runtimes\win-x86\lib\netstandard2.1\Steamworks.NET.dll diff --git a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.dll b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.dll index c21cdef2..05ad2259 100644 Binary files a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.dll and b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.dll differ diff --git a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.pdb b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.pdb index 074d7ba1..336e4130 100644 Binary files a/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.pdb and b/源代码/.Net/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.pdb differ diff --git a/源代码/.Net/StgSharpDebug/obj/StgSharpDebug.csproj.nuget.dgspec.json b/源代码/.Net/StgSharpDebug/obj/StgSharpDebug.csproj.nuget.dgspec.json index c230d7a3..557f7295 100644 --- a/源代码/.Net/StgSharpDebug/obj/StgSharpDebug.csproj.nuget.dgspec.json +++ b/源代码/.Net/StgSharpDebug/obj/StgSharpDebug.csproj.nuget.dgspec.json @@ -134,6 +134,10 @@ "Microsoft.CSharp": { "target": "Package", "version": "[4.7.0, )" + }, + "Steamworks.NET": { + "target": "Package", + "version": "[20.1.0, )" } }, "imports": [ diff --git a/源代码/.Net/StgSharpDebug/obj/project.assets.json b/源代码/.Net/StgSharpDebug/obj/project.assets.json index e92667cb..f1c92ff0 100644 --- a/源代码/.Net/StgSharpDebug/obj/project.assets.json +++ b/源代码/.Net/StgSharpDebug/obj/project.assets.json @@ -30,12 +30,48 @@ "lib/netcoreapp2.0/_._": {} } }, + "Steamworks.NET/20.1.0": { + "type": "package", + "compile": { + "ref/netstandard2.1/Steamworks.NET.dll": {} + }, + "runtime": { + "lib/netstandard2.1/Steamworks.NET.dll": {} + }, + "runtimeTargets": { + "runtimes/linux-x64/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "linux-x64" + }, + "runtimes/linux-x86/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "linux-x86" + }, + "runtimes/osx-x64/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "osx-x64" + }, + "runtimes/osx-x86/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "osx-x86" + }, + "runtimes/win-x64/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "win-x64" + }, + "runtimes/win-x86/lib/netstandard2.1/Steamworks.NET.dll": { + "assetType": "runtime", + "rid": "win-x86" + } + } + }, "StgSharp/1.0.0": { "type": "project", "framework": ".NETStandard,Version=v2.1", "dependencies": { "GLFWDotNet": "20.9.0", - "Microsoft.CSharp": "4.7.0" + "Microsoft.CSharp": "4.7.0", + "Steamworks.NET": "20.1.0" }, "compile": { "bin/placeholder/StgSharp.dll": {} @@ -132,6 +168,26 @@ "version.txt" ] }, + "Steamworks.NET/20.1.0": { + "sha512": "+GntwnyJ5tCNvUIaQxv2+ehDvZJzGUqlSB5xRBk1hTj1qqBJ6s4vK/OfGD/jae7aTmXiGSm8wpJORosNtQevJQ==", + "type": "package", + "path": "steamworks.net/20.1.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/netstandard2.1/Steamworks.NET.dll", + "readme.md", + "ref/netstandard2.1/Steamworks.NET.dll", + "runtimes/linux-x64/lib/netstandard2.1/Steamworks.NET.dll", + "runtimes/linux-x86/lib/netstandard2.1/Steamworks.NET.dll", + "runtimes/osx-x64/lib/netstandard2.1/Steamworks.NET.dll", + "runtimes/osx-x86/lib/netstandard2.1/Steamworks.NET.dll", + "runtimes/win-x64/lib/netstandard2.1/Steamworks.NET.dll", + "runtimes/win-x86/lib/netstandard2.1/Steamworks.NET.dll", + "steamworks.net.20.1.0.nupkg.sha512", + "steamworks.net.nuspec" + ] + }, "StgSharp/1.0.0": { "type": "project", "path": "../StgSharp/StgSharp.csproj", diff --git a/源代码/.Net/StgSharpDebug/obj/project.nuget.cache b/源代码/.Net/StgSharpDebug/obj/project.nuget.cache index 570898cf..ae19e894 100644 --- a/源代码/.Net/StgSharpDebug/obj/project.nuget.cache +++ b/源代码/.Net/StgSharpDebug/obj/project.nuget.cache @@ -1,11 +1,12 @@ { "version": 2, - "dgSpecHash": "gWnEG0hyez94dWdmnp0V0q94PvswAr/MlnXfT4T+phteI844ctO7t5MMuKlYGdgNxJlT8aOh7S4V05Df+4qKpA==", + "dgSpecHash": "RNeBAbgPDjVoMN0wCgiHdKSZl7blbpi7QUVgjypq9m6PyL52Ykwxe7dj87SnWZKStz814Gbnc/IFL47A2sNS6Q==", "success": true, "projectFilePath": "D:\\NitloadIndustry\\研究项目\\1-Flagship\\TH2020\\ProjectFile\\源代码\\.Net\\StgSharpDebug\\StgSharpDebug.csproj", "expectedPackageFiles": [ "C:\\Users\\Nitlo\\.nuget\\packages\\glfwdotnet\\20.9.0\\glfwdotnet.20.9.0.nupkg.sha512", "C:\\Users\\Nitlo\\.nuget\\packages\\microsoft.csharp\\4.7.0\\microsoft.csharp.4.7.0.nupkg.sha512", + "C:\\Users\\Nitlo\\.nuget\\packages\\steamworks.net\\20.1.0\\steamworks.net.20.1.0.nupkg.sha512", "C:\\Users\\Nitlo\\.nuget\\packages\\microsoft.netcore.app.host.win-x64\\6.0.12\\microsoft.netcore.app.host.win-x64.6.0.12.nupkg.sha512", "C:\\Users\\Nitlo\\.nuget\\packages\\microsoft.aspnetcore.app.ref\\6.0.12\\microsoft.aspnetcore.app.ref.6.0.12.nupkg.sha512", "C:\\Users\\Nitlo\\.nuget\\packages\\microsoft.windowsdesktop.app.ref\\6.0.12\\microsoft.windowsdesktop.app.ref.6.0.12.nupkg.sha512", diff --git a/源代码/.Net/calc/calc.luaproj b/源代码/.Net/calc/calc.luaproj deleted file mode 100644 index 4b6334e5..00000000 --- a/源代码/.Net/calc/calc.luaproj +++ /dev/null @@ -1,31 +0,0 @@ - - - Debug - 2.0 - E439935D-B2A2-46AE-856D-2AA408428F33 - - . - - - - - . - . - calc - calc - - - true - false - - - true - false - - - - Code - - - - \ No newline at end of file diff --git a/源代码/.Net/calc/file1.lua b/源代码/.Net/calc/file1.lua deleted file mode 100644 index d1e25601..00000000 --- a/源代码/.Net/calc/file1.lua +++ /dev/null @@ -1,20 +0,0 @@ ---region *.lua ---Date ---This file is automatically generated by the 【BabeLua】 plugin - - a = 1; - b = 0.001; - c = 0; - - - -while a-b > 0.0001*a do - c= (a+b)/2 - b = math.sqrt( a*b ) - a = c; -end - - -print(a,b) - ---endregion