fix math defines to have M_PI and M_TWOPI

This commit is contained in:
Matthias Grob
2019-09-04 23:42:58 +02:00
parent cc084e0791
commit 007c7c58c4
2 changed files with 7 additions and 4 deletions
-4
View File
@@ -17,10 +17,6 @@
#include "math.hpp"
#ifndef M_PI
#define M_PI (3.14159265358979323846f)
#endif
namespace matrix
{
+7
View File
@@ -13,6 +13,13 @@
#include <cstdlib>
#include <inttypes.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#ifndef M_TWOPI
#define M_TWOPI (M_PI * 2.0)
#endif
namespace matrix {
#if !defined(FLT_EPSILON)