- binangle: Add signedrad() and signeddeg() methods for consistency with the unsigned methods.

* Left out from f254eeb465.
This commit is contained in:
Mitchell Richters 2021-04-11 17:02:44 +10:00
parent e76f63e2c0
commit 656705bcd7

View file

@ -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()); }