Merge pull request #7 from majbthrd/mpidefine

add M_PI to defines.h
pull/30/head
drowe67 2023-10-02 16:57:38 +10:30 committed by GitHub
commit ea5c402514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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 */