godot/core/variant
Jcrespo 528a76486c Add inverse hyperbolic functions asinh(), acosh() & atanh()
GDScript has the following built-in trigonometry functions:

- `sin()`
- `cos()`
- `tan()`
- `asin()`
- `acos()`
- `atan()`
- `atan()`
- `sinh()`
- `cosh()`
- `tanh()`

However, it lacks the hyperbolic arc (also known as inverse
hyperbolic) functions:

- `asinh()`
- `acosh()`
- `atanh()`

Implement them by just exposing the C++ Math library, but clamping
its values to the closest real defined value.
For the cosine, clamp input values lower than 1 to 1.
In the case of the tangent, where the limit value is infinite,
clamp it to -inf or +inf.

References #78377
Fixes godotengine/godot-proposals#7110
2023-09-01 01:27:56 +02:00
..
array.cpp Fix range error for Array.slice 2023-07-07 23:19:42 +02:00
array.h Merge pull request #71786 from raulsntos/dotnet/array 2023-02-04 00:24:06 +01:00
binder_common.h Add ValidatedCall to MethodBind 2023-04-30 20:01:26 +02:00
callable_bind.cpp Fix rpc calls with binds 2023-06-22 11:07:53 +02:00
callable_bind.h Fix rpc calls with binds 2023-06-22 11:07:53 +02:00
callable.cpp Complete support of callables of static methods 2023-04-12 18:12:19 +02:00
callable.h Complete support of callables of static methods 2023-04-12 18:12:19 +02:00
container_type_validate.h GDScript: Fix usage of ints with typed array of floats 2023-02-13 22:06:38 +02:00
dictionary.cpp Added the missing second case for string keys 2023-03-11 01:08:23 +01:00
dictionary.h GDScript: Fix test for read-only state of constants 2023-01-27 05:28:08 +02:00
method_ptrcall.h Attempt to standardize Object ptrcall encoding on Object ** 2023-05-25 21:46:22 -05:00
native_ptr.h Fix GDVIRTUAL_NATIVE_PTR 2023-07-03 10:52:02 +02:00
SCsub Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
type_info.h Use BitField<> in core type masks 2023-01-08 22:17:40 +01:00
typed_array.h Undefine typed array templates after use 2023-08-19 12:30:43 -05:00
variant_call.cpp Add String.reverse method 2023-06-21 20:40:48 +03:00
variant_construct.cpp Add ValidatedCall to MethodBind 2023-04-30 20:01:26 +02:00
variant_construct.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
variant_destruct.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
variant_destruct.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
variant_internal.h Fix gdextension variant type conversion 2023-06-10 10:52:17 +09:00
variant_op.cpp Add operator NOT for all Variant types 2023-03-10 15:58:55 -03:00
variant_op.h Fix typo in modulo error message. 2023-08-01 04:47:18 -07:00
variant_parser.cpp Core: Fix recursion level check for VariantWriter::write() with objects 2023-08-29 15:05:53 +03:00
variant_parser.h Core: Fix recursion level check for VariantWriter::write() with objects 2023-08-29 15:05:53 +03:00
variant_setget.cpp Revert "Add API for HSL conversion" 2023-05-10 17:45:56 -03:00
variant_setget.h Revert "Add API for HSL conversion" 2023-05-10 17:45:56 -03:00
variant_utility.cpp Add inverse hyperbolic functions asinh(), acosh() & atanh() 2023-09-01 01:27:56 +02:00
variant_utility.h Add inverse hyperbolic functions asinh(), acosh() & atanh() 2023-09-01 01:27:56 +02:00
variant.cpp Core: Fix recursion level check for array stringification 2023-07-12 14:59:44 +03:00
variant.h Don't use a const reference for the enum constructor in Variant 2023-06-11 15:13:05 -05:00