New IO structure, unexpexted error in C code

This commit is contained in:
Nitload
2023-06-22 03:33:24 +08:00
parent 50b4965e54
commit ee8132c149
172 changed files with 1344 additions and 4023 deletions
+5 -9
View File
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Math
namespace StgSharp.Math
{
public static unsafe partial class Calc
{
@@ -30,7 +26,7 @@ namespace StgSharp.Math
angle = 0.7853981634f;
}
float v = 0.7853981634f * x + x * (1 - x) * (0.2447f+0.0663f * x);
float v = 0.7853981634f * x + x * (1 - x) * (0.2447f + 0.0663f * x);
v += angle;
v *= sign;
@@ -46,10 +42,10 @@ namespace StgSharp.Math
float z = y / x;
float sign = 1, angle = 0,angle2 = 0;
if (x<0)
float sign = 1, angle = 0, angle2 = 0;
if (x < 0)
{
angle = -3.1415926535f ;
angle = -3.1415926535f;
}
if (z < 0)
{