mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
fixed direct_exp in 2D
This commit is contained in:
parent
3e7a604408
commit
db351d9511
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user