1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-26 11:27:39 +00:00

arcm:: improved graphics on dihedra and hosohedra

This commit is contained in:
Zeno Rogue
2018-08-21 04:55:39 +02:00
parent 791603d4b0
commit 6edc257f28
3 changed files with 14 additions and 5 deletions

View File

@@ -59,6 +59,8 @@ struct archimedean_tiling {
int support_threecolor();
int support_football();
bool support_chessboard();
ld scale();
};
archimedean_tiling current;
@@ -343,6 +345,13 @@ void archimedean_tiling::compute_geometry() {
}
ld archimedean_tiling::scale() {
if(real_faces == 0 && N == 2) return M_PI / 2;
if(real_faces == 2) return M_PI / 2;
if(real_faces == 0) return 2 * M_PI / N;
return edgelength;
}
map<heptagon*, vector<pair<heptagon*, transmatrix> > > altmap;
map<heptagon*, pair<heptagon*, transmatrix>> archimedean_gmatrix;