virtualx-engine/core/math
lawnjelly 6f8e632848 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 09:51:44 +01:00
..
a_star.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
a_star.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
aabb.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
aabb.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
audio_frame.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
audio_frame.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
basis.cpp Make acos and asin safe 2023-05-11 09:51:44 +01:00
basis.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
bsp_tree.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
bsp_tree.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
bvh.h BVH - fix lockguards for multithread mode 2023-02-20 15:43:19 +00:00
bvh_abb.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
bvh_cull.inc BVH templated mask checks and generic NUM_TREES 2022-01-21 10:08:29 +00:00
bvh_debug.inc BVH - detect shrinkage within expanded bounds 2021-11-17 09:06:10 +00:00
bvh_integrity.inc Support for Dynamic BVH as 2D Physics broadphase 2021-04-30 15:53:15 -07:00
bvh_logic.inc clang-format: Various fixes to comments alignment from clang-format 13 2021-10-28 14:50:32 +02:00
bvh_misc.inc BVH templated mask checks and generic NUM_TREES 2022-01-21 10:08:29 +00:00
bvh_pair.inc Float literals - fix math classes to allow 32 bit calculations 2022-02-24 16:46:02 +00:00
bvh_public.inc Fixup BVH debugging statements 2022-07-25 18:35:14 +02:00
bvh_refit.inc BVH - fix stale current_tree in deactivate function 2021-05-25 10:43:04 +01:00
bvh_split.inc BVH - detect shrinkage within expanded bounds 2021-11-17 09:06:10 +00:00
bvh_structs.inc Fix array-bounds warning in BVH 2022-12-04 20:00:08 +08:00
bvh_tree.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
camera_matrix.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
camera_matrix.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
convex_hull.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
convex_hull.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
delaunay.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
disjoint_set.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
disjoint_set.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
expression.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
expression.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
face3.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
face3.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
geometry.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
geometry.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
math_defs.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
math_fieldwise.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
math_fieldwise.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
math_funcs.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
math_funcs.h Make acos and asin safe 2023-05-11 09:51:44 +01:00
octree.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
octree_definition.inc One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
plane.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
plane.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
quat.cpp Make acos and asin safe 2023-05-11 09:51:44 +01:00
quat.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
quick_hull.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
quick_hull.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
random_number_generator.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
random_number_generator.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
random_pcg.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
random_pcg.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
rect2.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
rect2.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
transform.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
transform.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
transform_2d.cpp [3.x] Expose determinant in Transform2D, rename internal method 2023-04-22 13:47:47 -05:00
transform_2d.h [3.x] Expose determinant in Transform2D, rename internal method 2023-04-22 13:47:47 -05:00
transform_interpolator.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
transform_interpolator.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
triangle_mesh.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
triangle_mesh.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
triangulate.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
triangulate.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
vector2.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
vector2.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
vector3.cpp One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00
vector3.h One Copyright Update to rule them all 2023-01-10 15:26:54 +01:00