1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-02 16:00:16 +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

@@ -13,7 +13,11 @@
namespace hr {
#if HDR
constexpr ld full_circle = 2 * M_PI;
constexpr ld quarter_circle = M_PI / 2;
static const ld degree = M_PI / 180;
constexpr ld golden_phi = (sqrt(5)+1)/2;
constexpr ld log_golden_phi = log(golden_phi);
#endif
eGeometry geometry;