11 lines
194 B
C++
Executable File
11 lines
194 B
C++
Executable File
#ifndef COMPARE_H
|
|
#define COMPARE_H
|
|
|
|
#include "constants/sim_constants.h"
|
|
|
|
bool isEqual(double a, double b) {
|
|
return std::abs(a - b) < SimConstants::compare_epsilon;
|
|
}
|
|
|
|
#endif /* COMPARE_H */
|