feat: added missing Math.Tan & Atan methods

This commit is contained in:
2025-10-23 10:00:52 +03:00
parent 2ef7fa6577
commit 1d02b0eba2

View File

@@ -110,6 +110,13 @@ public static class Math
/// <returns>The sine of <paramref name="x"/>.</returns>
public static float Sin(float x) => MathF.Sin(x);
/// <summary>
/// Returns the tangent of a number.
/// </summary>
/// <param name="x">The angle, in radians.</param>
/// <returns>The tangent of <paramref name="x"/>.</returns>
public static float Tan(float x) => MathF.Tan(x);
/// <summary>
/// Returns the arccosine of a number.
/// </summary>
@@ -124,6 +131,13 @@ public static class Math
/// <returns>The arcsine of <paramref name="x"/>.</returns>
public static float Asin(float x) => MathF.Asin(x);
/// <summary>
/// Returns the angle whose tangent is the specified number.
/// </summary>
/// <param name="x">The tangent value.</param>
/// <returns>The angle, in radians.</returns>
public static float Atan(float x) => MathF.Atan(x);
/// <summary>
/// Returns the angle whose tangent is the quotient of two specified numbers.
/// </summary>