diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/1470937e-e6c4-4aa2-912a-47943bbb1ba9.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/1470937e-e6c4-4aa2-912a-47943bbb1ba9.vsidx new file mode 100644 index 00000000..cc342d9f Binary files /dev/null and b/源代码/.Net/.vs/StgSharp/FileContentIndex/1470937e-e6c4-4aa2-912a-47943bbb1ba9.vsidx differ diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/191fd840-0cde-431b-b796-68ea1faf15b9.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/191fd840-0cde-431b-b796-68ea1faf15b9.vsidx new file mode 100644 index 00000000..fe4da020 Binary files /dev/null and b/源代码/.Net/.vs/StgSharp/FileContentIndex/191fd840-0cde-431b-b796-68ea1faf15b9.vsidx differ diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/ca84bfd9-ee94-4446-855d-d40cb3987226.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/ca84bfd9-ee94-4446-855d-d40cb3987226.vsidx deleted file mode 100644 index 3ad56a69..00000000 Binary files a/源代码/.Net/.vs/StgSharp/FileContentIndex/ca84bfd9-ee94-4446-855d-d40cb3987226.vsidx and /dev/null differ diff --git a/源代码/.Net/.vs/StgSharp/FileContentIndex/d47b1dd6-e5fc-4d4a-af67-061e60bce51b.vsidx b/源代码/.Net/.vs/StgSharp/FileContentIndex/d47b1dd6-e5fc-4d4a-af67-061e60bce51b.vsidx deleted file mode 100644 index e885cd11..00000000 Binary files a/源代码/.Net/.vs/StgSharp/FileContentIndex/d47b1dd6-e5fc-4d4a-af67-061e60bce51b.vsidx and /dev/null differ diff --git a/源代码/.Net/.vs/StgSharp/v17/.suo b/源代码/.Net/.vs/StgSharp/v17/.suo index f7938eac..d788cb8a 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 5993110d..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 { diff --git a/源代码/.Net/StgSharp/Math/ASin.cs b/源代码/.Net/StgSharp/Math/ASin.cs index b7b5b464..b9d90dda 100644 --- a/源代码/.Net/StgSharp/Math/ASin.cs +++ b/源代码/.Net/StgSharp/Math/ASin.cs @@ -9,9 +9,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 { private const float diff --git a/源代码/.Net/StgSharp/Math/ATan.cs b/源代码/.Net/StgSharp/Math/ATan.cs index 4407e164..f8a567dc 100644 --- a/源代码/.Net/StgSharp/Math/ATan.cs +++ b/源代码/.Net/StgSharp/Math/ATan.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 static unsafe float ATan(float x) { diff --git a/源代码/.Net/StgSharp/Math/BasicOps.cs b/源代码/.Net/StgSharp/Math/BasicOps.cs index 0cb76e65..f6f2526d 100644 --- a/源代码/.Net/StgSharp/Math/BasicOps.cs +++ b/源代码/.Net/StgSharp/Math/BasicOps.cs @@ -8,14 +8,5 @@ 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..822d3489 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..1e5ca743 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..3790bc63 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 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..8fcbb310 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 Calc { /*本方法将小数部分统一提升至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)