virtualx-engine/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
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
bvh_logic.inc
bvh_misc.inc
bvh_pair.inc
bvh_public.inc
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
color.h
color_names.inc
convex_hull.cpp Update lingering do/while(0) defines 2024-04-04 14:17:22 -05:00
convex_hull.h
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
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
face3.h
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
math_fieldwise.cpp
math_fieldwise.h
math_funcs.cpp
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
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
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
rect2.h [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
rect2i.cpp
rect2i.h [Core] Add scalar versions of Vector* min/max/clamp/snap(ped) 2024-05-02 10:31:13 +02:00
SCsub
static_raycaster.cpp
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
triangulate.cpp
triangulate.h
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