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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user