mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
fixed to_other_side in sphere
This commit is contained in:
parent
f8f166eb08
commit
f6e617535e
@ -403,7 +403,7 @@ EX transmatrix to_other_side(hyperpoint h1, hyperpoint h2) {
|
||||
else
|
||||
d1 = atan_auto(-v[LDIM] / h1[LDIM]);
|
||||
|
||||
hyperpoint hm = h1 * cos_auto(d1) + v * sin_auto(d1);
|
||||
hyperpoint hm = h1 * cos_auto(d1) + (sphere ? -1 : 1) * v * sin_auto(d1);
|
||||
|
||||
return rspintox(hm) * xpush(-hdist0(hm) * 2) * spintox(hm);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user