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

added some more useful math constants to hyperpoint.cpp

This commit is contained in:
Zeno Rogue
2020-03-31 19:02:25 +02:00
parent cad1bccd1a
commit 0446e25ebf
3 changed files with 6 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ hyperpoint mhpxy(ld x, ld y) {
else return bt::parabolic3(x, y) * C0;
}
const ld phi = (1 + sqrt(5)) / 2;
const ld phi = golden_phi;
const ld rphi = 1 / phi;
const ld down = 1 / tan(36 * degree);