mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-28 14:25:34 +00:00
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:
@@ -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();
|
||||
};
|
||||
Reference in New Issue
Block a user