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

arcm:: more efficient when actually regular

This commit is contained in:
Zeno Rogue
2020-07-03 15:40:26 +02:00
parent 02ebc8a96a
commit 39ac36c4aa
2 changed files with 13 additions and 4 deletions

View File

@@ -32,6 +32,8 @@ struct archimedean_tiling {
int repetition;
int N;
bool regular;
ld euclidean_angle_sum;
@@ -471,7 +473,9 @@ void archimedean_tiling::compute_geometry() {
for(auto& t: ts) DEBB0(DF_GEOM, (format(" %f@%f", float(t.first), float(t.second))));
DEBB(DF_GEOM, ());
}
regular = true;
for(int i: faces) if(i != faces[0]) regular = false;
}
ld archimedean_tiling::scale() {