refactor!: renamed Math.PI to Math.Pi

This commit is contained in:
2025-06-27 14:44:20 +03:00
parent 026f343d43
commit 5315db0077
2 changed files with 9 additions and 9 deletions

View File

@@ -8,12 +8,12 @@ public static class Math
/// <summary>
/// The value of Pi (π).
/// </summary>
public const float PI = 3.1415926535897932f;
public const float Pi = 3.1415926535897932f;
/// <summary>
/// The value of Tau (τ), mathematical constant equal to 2π.
/// </summary>
public const float Tau = 2f * PI;
public const float Tau = 2f * Pi;
/// <summary>
/// The base of the natural logarithm.
@@ -23,12 +23,12 @@ public static class Math
/// <summary>
/// The conversion factor from radians to degrees.
/// </summary>
public const float RadianToDegree = 180f / PI;
public const float RadianToDegree = 180f / Pi;
/// <summary>
/// The conversion factor from degrees to radians.
/// </summary>
public const float DegreeToRadian = PI / 180f;
public const float DegreeToRadian = Pi / 180f;
/// <summary>
/// Gets one minus of given <see cref="T"/>.