Update AkimaLib.cpp (#186)

add using namespace bug
LT1AB
JYC 2020-08-26 15:00:53 +08:00 committed by GitHub
parent b13d06aa3b
commit 1557a05b7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@
using std::max; using std::max;
using std::min; using std::min;
using std::vector; using std::vector;
using std::isnan;
bool AkimaLib::aki_almostEqual(double x, double y) { bool AkimaLib::aki_almostEqual(double x, double y) {
bool ret = (abs(x - y) <= AKI_EPS) ? true : false; // Compressed version is a little cleaner bool ret = (abs(x - y) <= AKI_EPS) ? true : false; // Compressed version is a little cleaner