mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 08:01:50 +00:00
fixed alternative parts of vectors.h
Not relevant for GZDoom itself but let's keep things tidy.
This commit is contained in:
parent
d2c395757c
commit
97c04357f1
1 changed files with 6 additions and 6 deletions
|
@ -60,12 +60,12 @@ namespace pi
|
|||
#if __has_include("math/cmath.h")
|
||||
#include "math/cmath.h"
|
||||
#else
|
||||
double g_cosdeg(double v) { return cos(v * (pi::pi() / 180.)); }
|
||||
double g_sindeg(double v) { return sin(v * (pi::pi() / 180.)); }
|
||||
double g_cos(double v) { return cos(v); }
|
||||
double g_sin(double v) { return sin(v); }
|
||||
double g_sqrt(double v) { return sqrt(v); }
|
||||
double g_atan2(double v, double w) { return atan2(v, w); }
|
||||
inline double g_cosdeg(double v) { return cos(v * (pi::pi() / 180.)); }
|
||||
inline double g_sindeg(double v) { return sin(v * (pi::pi() / 180.)); }
|
||||
inline double g_cos(double v) { return cos(v); }
|
||||
inline double g_sin(double v) { return sin(v); }
|
||||
inline double g_sqrt(double v) { return sqrt(v); }
|
||||
inline double g_atan2(double v, double w) { return atan2(v, w); }
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue