Addressed C99 compiler issues of initializing variables in header and unused included statements.

This commit is contained in:
waltjohnson
2016-05-19 09:58:18 -06:00
parent f5e2dabc2b
commit 7c158aa59b
7 changed files with 23 additions and 15 deletions
+8 -4
View File
@@ -41,18 +41,22 @@
#ifndef MATHLIB_H
#define MATHLIB_H
#ifdef POSIX_SHARED
#include <Eigen/Dense>
#include <algorithm>
// #include <Eigen/Dense>
// #include <algorithm>
#define M_PI_F 3.14159265358979323846f
#ifndef M_PI
#define M_PI (3.14159265358979323846f)
#endif
namespace math
{
using namespace Eigen;
// using namespace Eigen;
using namespace std;
float min(float val1, float val2);
float max(float val1, float val2);
float constrain(float &val, float min, float max);
float constrain(float val, float min, float max);
float radians(float degrees);
float degrees(float radians);