New IO structure, unexpexted error in C code
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace StgSharp.Math
|
||||
@@ -26,13 +24,13 @@ namespace StgSharp.Math
|
||||
/// <param name="x">The sine value of the angle</param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="ArgumentException"></exception>
|
||||
public static float ASin(float x )
|
||||
public static float ASin(float x)
|
||||
{
|
||||
|
||||
int sign = 1;
|
||||
float y ;
|
||||
|
||||
if (x<0)
|
||||
int sign = 1;
|
||||
float y;
|
||||
|
||||
if (x < 0)
|
||||
{
|
||||
sign = -1;
|
||||
y = -x;
|
||||
@@ -42,14 +40,14 @@ namespace StgSharp.Math
|
||||
y = x;
|
||||
}
|
||||
|
||||
if ( x>1)
|
||||
if (x > 1)
|
||||
{
|
||||
throw new ArgumentException();
|
||||
}
|
||||
|
||||
float r, s, u, v = 0.0f;
|
||||
bool transform = (y >= 0.5f);
|
||||
|
||||
|
||||
if (transform)
|
||||
{
|
||||
r = 0.5f * (1.0f - y);
|
||||
@@ -60,7 +58,7 @@ namespace StgSharp.Math
|
||||
{
|
||||
r = y * y;
|
||||
}
|
||||
u= r * (0.184161606965100694821398249421F +
|
||||
u = r * (0.184161606965100694821398249421F +
|
||||
(-0.0565298683201845211985026327361F +
|
||||
(-0.0133819288943925804214011424456F -
|
||||
0.00396137437848476485201154797087F * r) * r) * r) /
|
||||
|
||||
Reference in New Issue
Block a user