diff options
| author | Peter Lawrence <[email protected]> | 2023-08-03 10:45:40 -0500 |
|---|---|---|
| committer | Peter Lawrence <[email protected]> | 2023-08-03 10:45:40 -0500 |
| commit | e0ed157c0039dd99bad92840be46454c0da37383 (patch) | |
| tree | 97b3d1e46af438eaad5f7eadb4693747585f0bc0 | |
| parent | 06d4c11e699b0351765f10398abb4f663a984f36 (diff) | |
add M_PI to defines.h
| -rw-r--r-- | src/defines.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/defines.h b/src/defines.h index 2c63439..a2fd9ec 100644 --- a/src/defines.h +++ b/src/defines.h @@ -42,6 +42,9 @@ #ifndef PI #define PI 3.141592654 /* mathematical constant */ #endif +#ifndef M_PI +#define M_PI 3.14159265358979323846f +#endif #define TWO_PI 6.283185307 /* mathematical constant */ #define MAX_STR 2048 /* maximum string size */ |
