Daily update on 20231211 by nitload youmu
This commit is contained in:
@@ -9,7 +9,7 @@ using System;
|
||||
|
||||
namespace StgSharp.Math
|
||||
{
|
||||
public static unsafe partial class Calc
|
||||
public static unsafe partial class Scaler
|
||||
{
|
||||
|
||||
private const float
|
||||
@@ -26,7 +26,8 @@ namespace StgSharp.Math
|
||||
/// <exception cref="ArgumentException"></exception>
|
||||
public static float ASin(float x)
|
||||
{
|
||||
|
||||
return MathF.Asin(x);
|
||||
/*
|
||||
int sign = 1;
|
||||
float y;
|
||||
|
||||
@@ -51,7 +52,7 @@ namespace StgSharp.Math
|
||||
if (transform)
|
||||
{
|
||||
r = 0.5f * (1.0f - y);
|
||||
s = Calc.Sqrt(r);
|
||||
s = Scaler.Sqrt(r);
|
||||
y = s;
|
||||
}
|
||||
else
|
||||
@@ -64,7 +65,7 @@ namespace StgSharp.Math
|
||||
0.00396137437848476485201154797087F * r) * r) * r) /
|
||||
(1.10496961524520294485512696706F -
|
||||
0.836411276854206731913362287293F * r);
|
||||
/**/
|
||||
/*
|
||||
|
||||
if (transform)
|
||||
{
|
||||
@@ -83,10 +84,10 @@ namespace StgSharp.Math
|
||||
else
|
||||
{
|
||||
v = y + y * u;
|
||||
}/**/
|
||||
}/*
|
||||
|
||||
return sign * v;
|
||||
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user