refactor: Math Constants Now Use Each Other as References

This commit is contained in:
Syntriax 2024-01-24 12:28:01 +03:00
parent fbf9bd5832
commit 77e1949f59
1 changed files with 3 additions and 3 deletions

View File

@ -4,12 +4,12 @@ namespace Syntriax.Engine.Core;
public static class Math
{
public const float RadianToDegree = 57.29577866666166f;
public const float DegreeToRadian = 0.01745329277777778f;
public const float RadianToDegree = 180f / PI;
public const float DegreeToRadian = PI / 180f;
public const float E = 2.718281828459045f;
public const float PI = 3.1415926535897932f;
public const float Tau = 6.283185307179586f;
public const float Tau = 2f * PI;
public static float Abs(float x) => MathF.Abs(x);
public static float Acos(float x) => MathF.Acos(x);