mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- binangle
class: Tidy up missed C++20 warning fixed about enum used in floating-point arithmetic.
This commit is contained in:
parent
0eb4ff4ad2
commit
91f6b2954c
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ public:
|
||||||
inline constexpr binangle bamang(uint32_t v) { return binangle(v); }
|
inline constexpr binangle bamang(uint32_t v) { return binangle(v); }
|
||||||
inline constexpr binangle q16ang(uint32_t v) { return binangle(v << 5); }
|
inline constexpr binangle q16ang(uint32_t v) { return binangle(v << 5); }
|
||||||
inline constexpr binangle buildang(uint32_t v) { return binangle(v << BAMBITS); }
|
inline constexpr binangle buildang(uint32_t v) { return binangle(v << BAMBITS); }
|
||||||
inline binangle buildfang(double v) { return binangle(xs_CRoundToUInt(v * BAMUNIT)); }
|
inline binangle buildfang(double v) { return binangle(xs_ToFixed(BAMBITS, v)); }
|
||||||
inline binangle radang(double v) { return binangle(xs_CRoundToUInt(v * (0x80000000u / pi::pi()))); }
|
inline binangle radang(double v) { return binangle(xs_CRoundToUInt(v * (0x80000000u / pi::pi()))); }
|
||||||
inline binangle degang(double v) { return binangle(FloatToAngle(v)); }
|
inline binangle degang(double v) { return binangle(FloatToAngle(v)); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue