Browse Source

Use cmath and std functions, instead of math.h

pull/5/head
falkTX 7 years ago
parent
commit
7fab822bc8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/math.hpp

+ 2
- 2
include/math.hpp View File

@@ -1,6 +1,6 @@
#pragma once

#include <math.h>
#include <cmath>


namespace rack {
@@ -171,7 +171,7 @@ struct Vec {
return Vec(roundf(x), roundf(y));
}
bool isFinite() {
return isfinite(x) && isfinite(y);
return std::isfinite(x) && std::isfinite(y);
}
bool isZero() {
return x == 0.0 && y == 0.0;


Loading…
Cancel
Save