mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	renamed towards_ideal to towards_inf
This commit is contained in:
		| @@ -911,10 +911,10 @@ EX hyperpoint get_midedge(ld len, const hyperpoint &l, const hyperpoint &r) { | ||||
|     return normalize(kleinize(l) + kleinize(r)); | ||||
|     } | ||||
|   else if(len == INFINITE_RIGHT) { | ||||
|     return towards_ideal(r, l); | ||||
|     return towards_inf(r, l); | ||||
|     } | ||||
|   else if(len == INFINITE_LEFT) { | ||||
|     return towards_ideal(l, r); | ||||
|     return towards_inf(l, r); | ||||
|     } | ||||
|   else return mid(l, r); | ||||
|   } | ||||
|   | ||||
| @@ -1684,10 +1684,10 @@ EX hyperpoint circumscribe(hyperpoint a, hyperpoint b, hyperpoint c, hyperpoint | ||||
|   return h; | ||||
|   } | ||||
|  | ||||
| /** the point in distance dist from 'material' to 'ideal' */ | ||||
| EX hyperpoint towards_ideal(hyperpoint material, hyperpoint ideal, ld dist IS(1)) { | ||||
| /** the point in distance dist from 'material' to 'dir' (usually an (ultra)ideal point) */ | ||||
| EX hyperpoint towards_inf(hyperpoint material, hyperpoint dir, ld dist IS(1)) { | ||||
|   transmatrix T = gpushxto0(material); | ||||
|   hyperpoint id = T * ideal; | ||||
|   hyperpoint id = T * dir; | ||||
|   return rgpushxto0(material) * rspintox(id) * xpush0(1); | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue