diff options
author | stoofin <44447892+stoofin@users.noreply.github.com> | 2019-11-19 22:30:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-19 22:30:28 -0800 |
commit | 8abd64dcbbe80e20b23fd526437bd068289f365c (patch) | |
tree | 1e4c6a393319a780191de6772b75f86dd718b8ce /editor/icons | |
parent | 1bd32388aef6739a3da38301024243d8968356be (diff) |
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].
Diffstat (limited to 'editor/icons')
0 files changed, 0 insertions, 0 deletions