mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 20:42:11 +00:00
- optimize fcos and fsin to use the BAM value directly for table lookup.
No need to convert back and forth to rad.
This commit is contained in:
parent
735740e453
commit
3b5203132f
1 changed files with 2 additions and 2 deletions
|
@ -144,8 +144,8 @@ public:
|
|||
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()); }
|
||||
double fsin() const { return g_sinbam(asbam()); }
|
||||
double fcos() const { return g_cosbam(asbam()); }
|
||||
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