Implemented ConeAngle from DB2

This commit is contained in:
hondacrx
2017-07-19 10:44:44 -04:00
parent 14eade07af
commit 19220d29d9
5 changed files with 25 additions and 16 deletions
+9 -3
View File
@@ -92,6 +92,11 @@ public static class MathFunctions
return a + (b - a) * f;
}
public static float DegToRad(float degrees)
{
return degrees * (2.0f * PI / 360.0f);
}
#region Fuzzy
public static bool fuzzyEq(double a, double b)
{
@@ -109,13 +114,14 @@ public static class MathFunctions
{
return !fuzzyEq(a, b);
}
public static bool fuzzyLe(double a, double b)
{
return a < b + eps(a, b);
}
public static bool fuzzyGe(double a, double b)
{
return a > b - eps(a, b);
}
#endregion
public static int ApplyPct(ref int Base, float pct)