mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	twist:: correct plevel values for all nil
This commit is contained in:
		| @@ -89,6 +89,8 @@ struct archimedean_tiling { | ||||
|  | ||||
|   bool get_step_values(int& steps, int& single_step); | ||||
|  | ||||
|   ld dual_tile_area(); | ||||
|  | ||||
|   transmatrix adjcell_matrix(heptagon *h, int d); | ||||
|    | ||||
|   ld scale(); | ||||
| @@ -1588,6 +1590,14 @@ EX int get_graphical_id(cell *c) { | ||||
|   return tid; | ||||
|   } | ||||
|  | ||||
| ld archimedean_tiling::dual_tile_area() { | ||||
|   // we need this only in Euclidean for now | ||||
|   if(get_geometry().kind != gcEuclid) throw hr_exception("dual_tile_area only implemented in Euclidean"); | ||||
|   ld total = 0; | ||||
|   for(auto r: inradius) total += r; | ||||
|   return total * edgelength / 2; | ||||
|   } | ||||
|  | ||||
| bool archimedean_tiling::get_step_values(int& steps, int& single_step) { | ||||
|  | ||||
|   int nom = -2; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue