mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-14 20:00:49 +00:00
- binangle: Add signedrad()
and signeddeg()
methods for consistency with the unsigned methods.
* Left out from f254eeb465
.
This commit is contained in:
parent
e76f63e2c0
commit
656705bcd7
1 changed files with 2 additions and 0 deletions
|
@ -143,6 +143,8 @@ public:
|
|||
constexpr double signedbuildf() const { return tosigned() * (1. / BAMUNIT); }
|
||||
constexpr fixed_t signedq16() const { return tosigned() >> 5; }
|
||||
constexpr int32_t signedbam() const { return tosigned(); }
|
||||
constexpr double signedrad() const { return tosigned() * (pi::pi() / 0x80000000u); }
|
||||
constexpr double signeddeg() const { return AngleToFloat(tosigned()); }
|
||||
|
||||
double fsin() const { return g_sin(asrad()); }
|
||||
double fcos() const { return g_cos(asrad()); }
|
||||
|
|
Loading…
Reference in a new issue