diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs index ca0032df7325..81b2ffef3468 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Mathf.cs @@ -103,6 +103,36 @@ namespace Godot return Math.Acos(s); } + /// + /// Returns the hyperbolic arc (also called inverse) cosine of in radians. + /// Use it to get the angle from an angle's cosine in hyperbolic space if + /// is larger or equal to 1. + /// + /// The input hyperbolic cosine value. + /// + /// An angle that would result in the given hyperbolic cosine value. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float Acosh(float s) + { + return MathF.Acosh(s); + } + + /// + /// Returns the hyperbolic arc (also called inverse) cosine of in radians. + /// Use it to get the angle from an angle's cosine in hyperbolic space if + /// is larger or equal to 1. + /// + /// The input hyperbolic cosine value. + /// + /// An angle that would result in the given hyperbolic cosine value. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double Acosh(double s) + { + return Math.Acosh(s); + } + /// /// Returns the arc sine of in radians. /// Use to get the angle of sine . @@ -131,6 +161,36 @@ namespace Godot return Math.Asin(s); } + /// + /// Returns the hyperbolic arc (also called inverse) sine of in radians. + /// Use it to get the angle from an angle's sine in hyperbolic space if + /// is larger or equal to 1. + /// + /// The input hyperbolic sine value. + /// + /// An angle that would result in the given hyperbolic sine value. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float Asinh(float s) + { + return MathF.Asinh(s); + } + + /// + /// Returns the hyperbolic arc (also called inverse) sine of in radians. + /// Use it to get the angle from an angle's sine in hyperbolic space if + /// is larger or equal to 1. + /// + /// The input hyperbolic sine value. + /// + /// An angle that would result in the given hyperbolic sine value. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double Asinh(double s) + { + return Math.Asinh(s); + } + /// /// Returns the arc tangent of in radians. /// Use to get the angle of tangent . @@ -201,6 +261,36 @@ namespace Godot return Math.Atan2(y, x); } + /// + /// Returns the hyperbolic arc (also called inverse) tangent of in radians. + /// Use it to get the angle from an angle's tangent in hyperbolic space if + /// is between -1 and 1 (non-inclusive). + /// + /// The input hyperbolic tangent value. + /// + /// An angle that would result in the given hyperbolic tangent value. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float Atanh(float s) + { + return MathF.Atanh(s); + } + + /// + /// Returns the hyperbolic arc (also called inverse) tangent of in radians. + /// Use it to get the angle from an angle's tangent in hyperbolic space if + /// is between -1 and 1 (non-inclusive). + /// + /// The input hyperbolic tangent value. + /// + /// An angle that would result in the given hyperbolic tangent value. + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double Atanh(double s) + { + return Math.Atanh(s); + } + /// /// Rounds upward (towards positive infinity). ///