godot/core/math
lawnjelly 50c5ed4876 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.
2023-05-11 08:34:34 +01:00
..
a_star_grid_2d.cpp Allow negative coordinates in AStarGrid2D 2023-04-26 09:29:33 +03:00
a_star_grid_2d.h Allow negative coordinates in AStarGrid2D 2023-04-26 09:29:33 +03:00
a_star.cpp
a_star.h
aabb.cpp
aabb.h
audio_frame.h
basis.cpp Make acos and asin safe 2023-05-11 08:34:34 +01:00
basis.h
bvh_abb.h
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
bvh_structs.inc
bvh_tree.h
bvh.h BVH - fix lockguards for multithread mode 2023-02-20 15:15:18 +00:00
color_names.inc
color.cpp Add API for HSL conversion 2023-05-09 17:43:10 +02:00
color.h Add API for HSL conversion 2023-05-09 17:43:10 +02:00
convex_hull.cpp
convex_hull.h
delaunay_2d.h Optimize 2D Delaunay and make it more readable 2023-04-09 00:52:15 +02:00
delaunay_3d.h
disjoint_set.h
dynamic_bvh.cpp
dynamic_bvh.h
expression.cpp
expression.h
face3.cpp
face3.h
geometry_2d.cpp
geometry_2d.h
geometry_3d.cpp
geometry_3d.h
math_defs.h
math_fieldwise.cpp
math_fieldwise.h
math_funcs.cpp
math_funcs.h Make acos and asin safe 2023-05-11 08:34:34 +01:00
plane.cpp
plane.h
projection.cpp
projection.h
quaternion.cpp Make acos and asin safe 2023-05-11 08:34:34 +01:00
quaternion.h
quick_hull.cpp
quick_hull.h
random_number_generator.cpp
random_number_generator.h
random_pcg.cpp
random_pcg.h Fix randfn to prevent generating of nan values 2023-03-03 16:43:48 +03:00
rect2.cpp
rect2.h Minor typo and docs URL fixes 2023-02-28 13:38:01 +01:00
rect2i.cpp
rect2i.h Minor typo and docs URL fixes 2023-02-28 13:38:01 +01:00
SCsub
static_raycaster.cpp
static_raycaster.h
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
transform_3d.h
triangle_mesh.cpp
triangle_mesh.h
triangulate.cpp
triangulate.h
vector2.cpp
vector2.h
vector2i.cpp
vector2i.h
vector3.cpp Bias octahedral tangent y axis to avoid errors around 0 2023-02-13 19:24:14 -08:00
vector3.h
vector3i.cpp
vector3i.h
vector4.cpp
vector4.h
vector4i.cpp
vector4i.h