mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-30 03:50:34 +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(sl2) return slr::get_inverse_exp(h);
|
||||||
if(prod) return product::inverse_exp(h);
|
if(prod) return product::inverse_exp(h);
|
||||||
ld d = acos_auto_clamp(h[GDIM]);
|
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);
|
if(d && sin_auto(d)) for(int i=0; i<GDIM; i++) v[i] = h[i] * d / sin_auto(d);
|
||||||
v[3] = 0;
|
v[3] = 0;
|
||||||
return v;
|
return v;
|
||||||
|
Loading…
Reference in New Issue
Block a user