mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
small bug fix in inverse_exp
This commit is contained in:
parent
89585f004b
commit
f09ed715f1
@ -1239,7 +1239,7 @@ EX hyperpoint inverse_exp(const hyperpoint h, flagtype prec IS(pNORMAL)) {
|
||||
if(sl2) return slr::get_inverse_exp(h);
|
||||
if(prod) return product::inverse_exp(h);
|
||||
ld d = acos_auto_clamp(h[GDIM]);
|
||||
hyperpoint v;
|
||||
hyperpoint v = Hypc;
|
||||
if(d && sin_auto(d)) for(int i=0; i<GDIM; i++) v[i] = h[i] * d / sin_auto(d);
|
||||
v[3] = 0;
|
||||
return v;
|
||||
|
Loading…
Reference in New Issue
Block a user