1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 09:57:41 +00:00

crystal:: coordinate computation is exported now

This commit is contained in:
Zeno Rogue
2019-01-28 21:40:26 +01:00
parent f42fba3afe
commit d3a3d4df5e
2 changed files with 15 additions and 8 deletions

11
hyper.h
View File

@@ -4185,6 +4185,17 @@ namespace arcm {
}
namespace crystal {
static const int MAXDIM = 7;
typedef array<int, MAXDIM> coord;
static const coord c0 = {};
typedef array<ld, MAXDIM> ldcoord;
static const ldcoord ldc0 = {};
heptagon *get_heptagon_at(coord c);
coord get_coord(heptagon *h);
ldcoord get_ldcoord(cell *c);
extern colortable coordcolors;
extern ld compass_probability;
extern bool view_coordinates;