Browse Source

Define M_PI float, change logical and to &&

master
jaredkw 9 years ago committed by James Goppert
parent
commit
3509329f30
  1. 4
      matrix/Euler.hpp
  2. 2
      matrix/Matrix.hpp

4
matrix/Euler.hpp

@ -10,6 +10,10 @@ @@ -10,6 +10,10 @@
#include "math.hpp"
#ifndef M_PI
#define M_PI (3.14159265358979323846f)
#endif
namespace matrix
{

2
matrix/Matrix.hpp

@ -371,7 +371,7 @@ public: @@ -371,7 +371,7 @@ public:
setZero();
Matrix<Type, M, N> &self = *this;
for (size_t i = 0; i < M and i < N; i++) {
for (size_t i = 0; i < M && i < N; i++) {
self(i, i) = 1;
}
}

Loading…
Cancel
Save