528a76486c
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 |
||
---|---|---|
.. | ||
test_aabb.h | ||
test_astar.h | ||
test_basis.h | ||
test_color.h | ||
test_expression.h | ||
test_geometry_2d.h | ||
test_geometry_3d.h | ||
test_math_funcs.h | ||
test_plane.h | ||
test_quaternion.h | ||
test_random_number_generator.h | ||
test_rect2.h | ||
test_rect2i.h | ||
test_transform_2d.h | ||
test_transform_3d.h | ||
test_vector2.h | ||
test_vector2i.h | ||
test_vector3.h | ||
test_vector3i.h | ||
test_vector4.h | ||
test_vector4i.h |