mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	fixed orthogonal_move for points which are already moved
This commit is contained in:
		| @@ -575,7 +575,7 @@ EX hyperpoint orthogonal_move(const hyperpoint& h, ld z) { | |||||||
|   if(nil) return nisot::translate(h) * cpush0(2, z); |   if(nil) return nisot::translate(h) * cpush0(2, z); | ||||||
|   if(translatable) return hpxy3(h[0], h[1], h[2] + z); |   if(translatable) return hpxy3(h[0], h[1], h[2] + z); | ||||||
|   ld u = 1; |   ld u = 1; | ||||||
|   if(h[2]) z += asin_auto(h[2]), u /= acos_auto(z); |   if(h[2]) z += asin_auto(h[2]), u /= cos_auto(asin_auto(h[2])); | ||||||
|   u *= cos_auto(z); |   u *= cos_auto(z); | ||||||
|   return hpxy3(h[0] * u, h[1] * u, sinh(z)); |   return hpxy3(h[0] * u, h[1] * u, sinh(z)); | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue