feat: added missing Math.Tan & Atan methods
This commit is contained in:
@@ -110,6 +110,13 @@ public static class Math
|
|||||||
/// <returns>The sine of <paramref name="x"/>.</returns>
|
/// <returns>The sine of <paramref name="x"/>.</returns>
|
||||||
public static float Sin(float x) => MathF.Sin(x);
|
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>
|
/// <summary>
|
||||||
/// Returns the arccosine of a number.
|
/// Returns the arccosine of a number.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -124,6 +131,13 @@ public static class Math
|
|||||||
/// <returns>The arcsine of <paramref name="x"/>.</returns>
|
/// <returns>The arcsine of <paramref name="x"/>.</returns>
|
||||||
public static float Asin(float x) => MathF.Asin(x);
|
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>
|
/// <summary>
|
||||||
/// Returns the angle whose tangent is the quotient of two specified numbers.
|
/// Returns the angle whose tangent is the quotient of two specified numbers.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Reference in New Issue
Block a user