refactor: replace Mth with GameMath, switch to stdlib math and std::numbers::pi

Inlined trivial wrappers, moved ranged random methods to Random, replaced M_PI with std::numbers::pi, unified DEGRAD/RAD_TO_GRAD as DEG_TO_RAD, fixed getInt/getDouble default fallback bug, and switched non-worldgen sin/cos to sinf/cosf.
This commit is contained in:
MatthewBeshay
2026-03-31 13:11:32 +11:00
parent 56dfb0badf
commit 8f0c2a3f26
233 changed files with 1662 additions and 1778 deletions

View File

@@ -18,7 +18,10 @@ public:
double nextGaussian();
int nextInt();
int nextInt(int to);
int nextInt(int minInclusive, int maxInclusive);
float nextFloat();
float nextFloat(float min, float max);
double nextDouble(double min, double max);
int64_t nextLong();
bool nextBoolean();
};