godot/core/math
stoofin 577b6d1196 Fixed bug caused by a copy/paste error in Face3::get_closest_point_to
s * edge0 = -d / a * edge0 = -edge0⋅v0 / (edge0⋅edge0) * edge0 = vector projection of -v0 onto edge0

By incorrectly using -e/c instead of -d/a, Face3::get_closest_point_to was returning the wrong point in certain cases.  Specifically, I noticed it returning vertex[0] when it should have been returning vertex[1].

(cherry picked from commit 8abd64dcbb)
2019-11-29 16:04:41 +01:00
..
a_star.cpp Added functions to AStar for disable/enable points 2019-04-20 23:21:06 +02:00
a_star.h Added functions to AStar for disable/enable points 2019-04-20 23:21:06 +02:00
aabb.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
aabb.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
audio_frame.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
audio_frame.h Added generator audio stream, and spectrum analyzer audio effect 2019-04-20 23:50:19 +02:00
basis.cpp Some improvements to is_equal_approx, restored Quat operator. 2019-04-20 23:52:19 +02:00
basis.h Some improvements to is_equal_approx, restored Quat operator. 2019-04-20 23:52:19 +02:00
bsp_tree.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
bsp_tree.h Core: Ensure classes match their header filename 2019-02-12 13:34:25 +01:00
camera_matrix.cpp Update some dead links in the codebase 2019-07-29 17:47:46 +02:00
camera_matrix.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
delaunay.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
expression.cpp Added smoothstep built-in function 2019-04-20 23:30:56 +02:00
expression.h Added smoothstep built-in function 2019-04-20 23:30:56 +02:00
face3.cpp Fixed bug caused by a copy/paste error in Face3::get_closest_point_to 2019-11-29 16:04:41 +01:00
face3.h Add -Wshadow=local to warnings and fix reported issues. 2019-02-20 19:44:12 +01:00
geometry.cpp TileSet/TileMap: Decompose solid non-convex polygons into convexes. Real fix for #24003 2019-03-04 21:03:10 -03:00
geometry.h Fixes Geometry.segment_intersects_circle working only one way. 2019-11-12 11:04:27 +01:00
math_defs.h Several fixes to make GLES2 on HTML5 work much better. 2019-02-25 21:47:29 -03:00
math_fieldwise.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
math_fieldwise.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
math_funcs.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
math_funcs.h Some improvements to is_equal_approx, restored Quat operator. 2019-04-20 23:52:19 +02:00
octree.h Add -Wshadow=local to warnings and fix reported issues. 2019-02-20 19:44:12 +01:00
plane.cpp Revert "fixed invalid implementation of Plane::intersects_segment and Plane::intersects_ray" 2019-01-13 11:06:34 +01:00
plane.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
quat.cpp Several fixes to make GLES2 on HTML5 work much better. 2019-02-25 21:47:29 -03:00
quat.h Fix new GCC 9 warnings: -Wdeprecated-copy. 2019-04-20 22:04:25 +02:00
quick_hull.cpp Scale quickhull tolerance with mesh size 2019-03-01 20:58:39 +00:00
quick_hull.h Scale quickhull tolerance with mesh size 2019-03-01 20:58:39 +00:00
random_number_generator.cpp Added normally distributed generation function to RNG 2019-04-20 23:39:04 +02:00
random_number_generator.h Added normally distributed generation function to RNG 2019-04-20 23:39:04 +02:00
random_pcg.cpp Revert "Properly setup seed in RNG" 2019-04-09 09:36:31 +02:00
random_pcg.h Added normally distributed generation function to RNG 2019-04-20 23:39:04 +02:00
rect2.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
rect2.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
SCsub SCons: Build core's thirdparty code in own environment 2018-09-28 11:40:41 +02:00
transform.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
transform.h [Core] Rename Matrix3 file to Basis 2019-02-09 14:42:23 -05:00
transform_2d.cpp [Core] Transform2D add set_scale and fix set_rotation 2019-02-12 17:59:29 -05:00
transform_2d.h [Core] Transform2D add set_scale and fix set_rotation 2019-02-12 17:59:29 -05:00
triangle_mesh.cpp Core: Ensure classes match their header filename 2019-02-12 13:34:25 +01:00
triangle_mesh.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
triangulate.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
triangulate.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
vector2.cpp Several fixes to make GLES2 on HTML5 work much better. 2019-02-25 21:47:29 -03:00
vector2.h Added direction_to method to vectors 2019-04-20 23:24:35 +02:00
vector3.cpp [Core] Rename Matrix3 file to Basis 2019-02-09 14:42:23 -05:00
vector3.h when doing Vector3 slerp it is not necessary to have it normalized. 2019-11-12 13:09:35 +01:00