1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

fixed direct_exp in 2D

This commit is contained in:
Zeno Rogue 2019-08-25 20:08:35 +02:00
parent 3e7a604408
commit db351d9511

View File

@ -1086,7 +1086,7 @@ EX hyperpoint direct_exp(hyperpoint v, int steps) {
if(prod) return product::direct_exp(v);
ld d = hypot_d(GDIM, v);
if(d > 0) for(int i=0; i<GDIM; i++) v[i] = v[i] * sin_auto(d) / d;
v[3] = cos_auto(d);
v[LDIM] = cos_auto(d);
return v;
}