product:: precise_mouseover fixed

This commit is contained in:
Zeno Rogue 2019-08-19 09:47:53 +02:00
parent e5fb06e6cd
commit 2267355daa
1 changed files with 2 additions and 0 deletions

View File

@ -7205,6 +7205,8 @@ EX void precise_mouseover() {
mouseover2 = mouseover = viewcenter();
ld best = HUGE_VAL;
hyperpoint h =
prod ? product::direct_exp( inverse(nisot::local_perspective) * cspin(2, 0, M_PI/2) * forward_dir(1) ) :
nisot::local_perspective_used() ? inverse(nisot::local_perspective) * cpush(2, 1) * C0 : cpush(2, 1) * C0;
forCellEx(c1, mouseover2) {
ld dist = hdist(tC0(ggmatrix(c1)), h);