1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-14 00:04:05 +00:00

twist:: correct plevel values for all nil

This commit is contained in:
Zeno Rogue
2024-06-16 23:13:49 +02:00
parent 07fe59f3e1
commit dfd213fc73
2 changed files with 20 additions and 7 deletions

View File

@@ -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;