mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
simplified ggpushxto0
This commit is contained in:
parent
f4a596ed87
commit
70d92bb157
@ -803,7 +803,7 @@ EX transmatrix ggpushxto0(const hyperpoint& H, ld co) {
|
||||
}
|
||||
transmatrix res = Id;
|
||||
if(sqhypot_d(GDIM, H) < 1e-12) return res;
|
||||
ld fac = (H[LDIM]-1) / sqhypot_d(GDIM, H);
|
||||
ld fac = -curvature()/(H[LDIM]+1);
|
||||
for(int i=0; i<GDIM; i++)
|
||||
for(int j=0; j<GDIM; j++)
|
||||
res[i][j] += H[i] * H[j] * fac;
|
||||
|
Loading…
Reference in New Issue
Block a user