mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- binaryangle.h: Use cmath.h functions for binangle
/lookangle
trig methods as well.
This commit is contained in:
parent
b89cd6d14c
commit
89048c8e70
1 changed files with 6 additions and 6 deletions
|
@ -139,9 +139,9 @@ public:
|
|||
constexpr double asdeg() const { return AngleToFloat(value); }
|
||||
constexpr int32_t asbam() const { return value; }
|
||||
|
||||
double fsin() const { return sin(asrad()); }
|
||||
double fcos() const { return cos(asrad()); }
|
||||
double ftan() const { return tan(asrad()); }
|
||||
double fsin() const { return g_sin(asrad()); }
|
||||
double fcos() const { return g_cos(asrad()); }
|
||||
double ftan() const { return g_tan(asrad()); }
|
||||
int bsin(const int8_t& shift = 0) const { return ::bsin(asbuild(), shift); }
|
||||
int bcos(const int8_t& shift = 0) const { return ::bcos(asbuild(), shift); }
|
||||
|
||||
|
@ -263,9 +263,9 @@ public:
|
|||
constexpr double asdeg() const { return AngleToFloat(value); }
|
||||
constexpr uint32_t asbam() const { return value; }
|
||||
|
||||
double fsin() const { return sin(asrad()); }
|
||||
double fcos() const { return cos(asrad()); }
|
||||
double ftan() const { return tan(asrad()); }
|
||||
double fsin() const { return g_sin(asrad()); }
|
||||
double fcos() const { return g_cos(asrad()); }
|
||||
double ftan() const { return g_tan(asrad()); }
|
||||
int bsin(const int8_t& shift = 0) const { return ::bsin(asbuild(), shift); }
|
||||
int bcos(const int8_t& shift = 0) const { return ::bcos(asbuild(), shift); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue