godot/tests/core/math
lawnjelly efbb28d09a
Make acos and asin safe
A common bug with using acos and asin is that input outside -1 to 1 range will result in Nan output. This can occur due to floating point error in the input.

The standard solution is to provide safe_acos function with clamped input. For Godot it may make more sense to make the standard functions safe.

(cherry picked from commit 50c5ed4876)
2023-05-12 12:31:23 +02:00
..
test_aabb.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_astar.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_basis.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_color.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_expression.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_geometry_2d.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_geometry_3d.h Convert en_GB spelling to en_US with codespell 2023-01-23 11:02:20 +01:00
test_math_funcs.h Make acos and asin safe 2023-05-12 12:31:23 +02:00
test_plane.h Rename `center` method to `get_center` in Plane. 2023-01-15 17:18:50 +01:00
test_quaternion.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_random_number_generator.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_rect2.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_rect2i.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_transform_2d.h Add support for interpolating skewed transforms 2023-01-28 18:28:42 -06:00
test_transform_3d.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_vector2.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_vector2i.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
test_vector3.h Added component-wise `min` and `max` functions for vectors 2023-02-11 15:03:11 -05:00
test_vector3i.h Added component-wise `min` and `max` functions for vectors 2023-02-11 15:03:11 -05:00
test_vector4.h Added component-wise `min` and `max` functions for vectors 2023-02-11 15:03:11 -05:00
test_vector4i.h Added component-wise `min` and `max` functions for vectors 2023-02-11 15:03:11 -05:00