Skip to content

Commit

Permalink
fixed alternative parts of vectors.h
Browse files Browse the repository at this point in the history
Not relevant for GZDoom itself but let's keep things tidy.
  • Loading branch information
coelckers committed Dec 21, 2023
1 parent d2c3957 commit 97c0435
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/common/utility/vectors.h
Expand Up @@ -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


Expand Down

0 comments on commit 97c0435

Please sign in to comment.