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
..
a_star_grid_2d.cpp Add the fill region methods to the AStarGrid2D 2023-07-15 16:52:29 +03:00
a_star_grid_2d.h Add the fill region methods to the AStarGrid2D 2023-07-15 16:52:29 +03:00
a_star.cpp Enchance the performance of AStar by using a LocalVector(2) 2023-01-27 16:28:11 +03:00
a_star.h Convert en_GB spelling to en_US with codespell 2023-01-23 11:02:20 +01:00
aabb.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
aabb.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
audio_frame.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
basis.cpp Fix for SkeletonIK3D interpolation and bone roll 2023-06-05 20:44:45 -07:00
basis.h Add the ability to look-at in model-space. 2023-05-24 10:10:24 +09:00
bvh_abb.h Convert en_GB spelling to en_US with codespell 2023-01-23 11:02:20 +01:00
bvh_cull.inc
bvh_debug.inc Use String.repeat() in more places 2023-05-01 02:27:46 +02:00
bvh_integrity.inc
bvh_logic.inc
bvh_misc.inc
bvh_pair.inc
bvh_public.inc
bvh_refit.inc
bvh_split.inc Convert en_GB spelling to en_US with codespell 2023-01-23 11:02:20 +01:00
bvh_structs.inc Fix array-bounds warning in BVH 2022-09-22 16:06:25 +01:00
bvh_tree.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
bvh.h BVH - fix lockguards for multithread mode 2023-02-20 15:15:18 +00:00
color_names.inc One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
color.cpp Make ok_color functions static 2023-05-13 16:57:19 +02:00
color.h Revert "Add API for HSL conversion" 2023-05-10 17:45:56 -03:00
convex_hull.cpp Merge pull request #76787 from RedworkDE/avoid-localvector-copy 2023-06-20 00:01:55 +02:00
convex_hull.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
delaunay_2d.h Consider all triangles for retention in Delaunay Triangulation 2023-06-17 11:18:30 -04:00
delaunay_3d.h Fix various typos with codespell 2023-08-07 13:09:47 +02:00
disjoint_set.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
dynamic_bvh.cpp Fix various typos with codespell 2023-02-01 08:45:41 +01:00
dynamic_bvh.h Fix various typos with codespell 2023-02-01 08:45:41 +01:00
expression.cpp Add support for Unicode identifiers in Expression class 2023-01-21 13:39:42 -03:00
expression.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
face3.cpp Cleanup unused engine code v2 2023-01-19 13:02:18 +01:00
face3.h Cleanup unused engine code v2 2023-01-19 13:02:18 +01:00
geometry_2d.cpp Cleanup unused engine code v2 2023-01-19 13:02:18 +01:00
geometry_2d.h Cleanup unused engine code v2 2023-01-19 13:02:18 +01:00
geometry_3d.cpp Remove unnecessary Clipper lib includes 2023-05-24 23:57:08 +02:00
geometry_3d.h Cleanup unused engine code v2 2023-01-19 13:02:18 +01:00
math_defs.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
math_fieldwise.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
math_fieldwise.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
math_funcs.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
math_funcs.h Add inverse hyperbolic functions asinh(), acosh() & atanh() 2023-09-01 01:27:56 +02:00
plane.cpp Allow setting negative WorldBoundaryShape2D.distance through the editor 2023-06-14 14:54:00 +02:00
plane.h Rename center method to get_center in Plane. 2023-01-15 17:18:50 +01:00
projection.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
projection.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
quaternion.cpp Make acos and asin safe 2023-05-11 08:34:34 +01:00
quaternion.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
quick_hull.cpp More codespell fixes, do more changes from previous ignore list 2023-02-01 12:11:36 +01:00
quick_hull.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
random_number_generator.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
random_number_generator.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
random_pcg.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
random_pcg.h Fix randfn to prevent generating of nan values 2023-03-03 16:43:48 +03:00
rect2.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rect2.h Minor typo and docs URL fixes 2023-02-28 13:38:01 +01:00
rect2i.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rect2i.h Minor typo and docs URL fixes 2023-02-28 13:38:01 +01:00
SCsub
static_raycaster.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
static_raycaster.h Enable shadow warnings and fix raised errors 2023-05-11 16:00:59 +02:00
transform_2d.cpp Expose determinant in Transform2D, rename internal method 2023-04-22 13:44:14 -05:00
transform_2d.h Expose determinant in Transform2D, rename internal method 2023-04-22 13:44:14 -05:00
transform_3d.cpp Add the ability to look-at in model-space. 2023-05-24 10:10:24 +09:00
transform_3d.h Add the ability to look-at in model-space. 2023-05-24 10:10:24 +09:00
triangle_mesh.cpp Cleanup unused engine code v2 2023-01-19 13:02:18 +01:00
triangle_mesh.h Cleanup unused engine code v2 2023-01-19 13:02:18 +01:00
triangulate.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
triangulate.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
vector2.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
vector2.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
vector2i.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
vector2i.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
vector3.cpp Bias octahedral tangent y axis to avoid errors around 0 2023-02-13 19:24:14 -08:00
vector3.h Added component-wise min and max functions for vectors 2023-02-11 15:03:11 -05:00
vector3i.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
vector3i.h Added component-wise min and max functions for vectors 2023-02-11 15:03:11 -05:00
vector4.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
vector4.h Added component-wise min and max functions for vectors 2023-02-11 15:03:11 -05:00
vector4i.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
vector4i.h Added component-wise min and max functions for vectors 2023-02-11 15:03:11 -05:00