Skip to content

Commit

Permalink
Merge pull request #44 from sadguitarius/add-M_E-to-constants
Browse files Browse the repository at this point in the history
add M_E to constants
  • Loading branch information
madskjeldgaard authored Apr 8, 2024
2 parents dbd28bc + 6a1634d commit a754dec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@
#ifndef MK_CONSTANTS
#define MK_CONSTANTS

// This is necessary to get M_PI to work on windows
// This is necessary to get M_PI and M_E to work on windows
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

#ifndef M_E
#define M_E 2.7182818284590452354
#endif

#ifndef M_SQRT2
#define M_SQRT2 1.41421356237309504880
#endif
Expand Down

0 comments on commit a754dec

Please sign in to comment.