godot/core/math
lawnjelly b35264ad95 Fix AABB Ray intersection - return inside
* Separates find_intersects from test_intersects for rays, and wraps the former.
* Changes parameter name to "r_intersection_point".
* Fixes broken old version which returned per axis t.
* Returns whether the ray origin is within the AABB.
* Returns intersection point when origin outside.
* Returns "backtracking" intersection point when inside.
* Returns sensible normal when inside.
* Returns valid results on borders.
* Returns robust results dealing with floating point error.

Co-authored-by: Claire Blackshaw <evilkimau@gmail.com>
2024-05-09 20:41:19 +01:00
..
a_star.compat.inc add partial path return option for astar 2024-04-03 22:27:33 -07:00
a_star.cpp add partial path return option for astar 2024-04-03 22:27:33 -07:00
a_star.h add partial path return option for astar 2024-04-03 22:27:33 -07:00
a_star_grid_2d.compat.inc add partial path return option for astar 2024-04-03 22:27:33 -07:00
a_star_grid_2d.cpp add partial path return option for astar 2024-04-03 22:27:33 -07:00
a_star_grid_2d.h add partial path return option for astar 2024-04-03 22:27:33 -07:00
aabb.cpp Fix AABB Ray intersection - return inside 2024-05-09 20:41:19 +01:00
aabb.h Fix AABB Ray intersection - return inside 2024-05-09 20:41:19 +01:00
audio_frame.h Fix member names of AudioFrame to match extension 2024-02-13 15:37:09 +01:00
basis.cpp Fix incorrect name of Basis global scale getter 2024-04-16 04:26:52 -07:00
basis.h Fix incorrect name of Basis global scale getter 2024-04-16 04:26:52 -07:00
bvh.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
bvh_abb.h Fix some uses of float and real_t in core/math 2024-03-29 16:44:12 -07:00
bvh_cull.inc Merge pull request #57630 from lawnjelly/bvh4_templated_checks 2022-03-04 23:29:38 +01:00
bvh_debug.inc Fix some uses of float and real_t in core/math 2024-03-29 16:44:12 -07:00
bvh_integrity.inc Dynamic BVH broadphase in 2D & 3D Godot Physics 2021-05-10 16:28:55 -07:00
bvh_logic.inc BVH - Sync BVH with 3.x 2022-02-04 16:51:21 +00:00
bvh_misc.inc BVH - Sync BVH with 3.x 2022-02-04 16:51:21 +00:00
bvh_pair.inc BVH - Sync BVH with 3.x 2022-02-04 16:51:21 +00:00
bvh_public.inc Fixup BVH debugging statements 2022-07-25 18:21:53 +02:00
bvh_refit.inc Fix not refitting upward from leaf nodes. 2023-09-28 20:27:51 +08:00
bvh_split.inc Fix some uses of float and real_t in core/math 2024-03-29 16:44:12 -07:00
bvh_structs.inc Fix not refitting upward from leaf nodes. 2023-09-28 20:27:51 +08:00
bvh_tree.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06: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
color_names.inc One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
convex_hull.cpp Update lingering do/while(0) defines 2024-04-04 14:17:22 -05:00
convex_hull.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
delaunay_2d.h [Core] Codestyle improvements to math types 2024-03-04 18:17:10 +01:00
delaunay_3d.h [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
disjoint_set.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
dynamic_bvh.cpp Fix various typos with codespell 2023-02-01 08:45:41 +01:00
dynamic_bvh.h Use Vector* component-wise min/max/clamp functions where applicable 2024-03-20 13:47:42 +01:00
expression.cpp Add const lvalue ref to core/* container parameters 2024-02-14 11:20:36 -03:00
expression.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06: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 Replace Clipper1 library by Clipper2 library 2024-04-20 13:37:59 +02:00
geometry_2d.h Use Vector* component-wise min/max/clamp functions where applicable 2024-03-20 13:47:42 +01:00
geometry_3d.cpp Pre-commit: Update to clang-format 17.0.6 and black 24.2.0 2024-02-28 14:25:35 +01:00
geometry_3d.h Fix some uses of float and real_t in core/math 2024-03-29 16:44:12 -07: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 Fix potential integer underflow in rounded up divisions 2024-01-02 14:14:47 +01: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 Merge pull request #90063 from aaronfranke/really-floaty 2024-04-04 14:36:57 +02:00
projection.h Merge pull request #90063 from aaronfranke/really-floaty 2024-04-04 14:36:57 +02:00
quaternion.cpp [Core] Codestyle improvements to math types 2024-03-04 18:17:10 +01:00
quaternion.h [Core] Codestyle improvements to math types 2024-03-04 18:17:10 +01:00
quick_hull.cpp [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
quick_hull.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
random_number_generator.cpp Add RandomNumberGenerator::rand_weighted method 2024-02-29 13:29:53 +01:00
random_number_generator.h Fix RandomNumberGenerator::rand_weighted return type 2024-03-02 20:56:01 -06:00
random_pcg.cpp [Core] Fix rand_weighted not using the current state 2024-03-17 19:21:16 +01:00
random_pcg.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
rect2.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rect2.h [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
rect2i.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rect2i.h [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
static_raycaster.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
static_raycaster.h Fix builtin_embree=no build linking the wrong version of Embree 2024-05-08 00:40:45 +02:00
transform_2d.cpp [Core] Codestyle improvements to math types 2024-03-04 18:17:10 +01:00
transform_2d.h [Core] Codestyle improvements to math types 2024-03-04 18:17:10 +01:00
transform_3d.cpp [Core] Codestyle improvements to math types 2024-03-04 18:17:10 +01:00
transform_3d.h [Core] Codestyle improvements to math types 2024-03-04 18:17:10 +01:00
transform_interpolator.cpp Fixed Timestep Interpolation (2D) 2024-03-23 12:28:36 +01:00
transform_interpolator.h Fixed Timestep Interpolation (2D) 2024-03-23 12:28:36 +01:00
triangle_mesh.cpp [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02: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 [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
vector2.h [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
vector2i.cpp [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
vector2i.h [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
vector3.cpp [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
vector3.h [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
vector3i.cpp [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
vector3i.h [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
vector4.cpp Add PackedVector4Array Variant type 2024-05-03 00:58:27 +02:00
vector4.h Add PackedVector4Array Variant type 2024-05-03 00:58:27 +02:00
vector4i.cpp [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
vector4i.h [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00