1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00
Files
godot/core/math
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
..
2023-01-05 13:25:55 +01:00
2023-01-05 13:25:55 +01:00
2022-02-04 16:51:21 +00:00
2022-02-04 16:51:21 +00:00
2022-02-04 16:51:21 +00:00
2022-07-25 18:21:53 +02:00
2023-05-13 16:57:19 +02:00
2023-05-10 17:45:56 -03:00
2023-08-07 13:09:47 +02:00
2023-02-01 08:45:41 +01:00
2023-01-19 13:02:18 +01:00
2023-01-19 13:02:18 +01:00
2023-01-19 13:02:18 +01:00
2023-01-19 13:02:18 +01:00
2023-01-19 13:02:18 +01:00
2023-05-11 08:34:34 +01:00
2023-02-28 13:38:01 +01:00
2023-02-28 13:38:01 +01:00
2023-01-19 13:02:18 +01:00