diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-02-06 13:47:46 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-02-06 13:49:12 +0300 |
commit | 6202bc82b858d8f6876c6c20ec62dd0a16209087 (patch) | |
tree | 8a3e0bf4ef94fb91c6190c743d00a17aa77eb7dc /source/blender/makesdna/DNA_action_types.h | |
parent | f7613cf41ceb4d31d8a869e27cef4781a83e09db (diff) |
Fix T60935: More numerically stable distance to ray computation
The old function was numerically very unstable for 2 reasons:
computing the square and then subtracting the results.
In the example in T60935 all precision was lost and it returned the distance 0
for all points.
I also removed the `depth` parameter since it wasn't used and computing
it would have made the code more complicated.
Reviewers: brecht, campbellbarton
Differential Revision: https://developer.blender.org/D4308
Diffstat (limited to 'source/blender/makesdna/DNA_action_types.h')
0 files changed, 0 insertions, 0 deletions