mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	simplified ggpushxto0
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue