Many, many more comments
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "constants/sim_constants.h"
|
||||
|
||||
// check if a and b are the same up to an accuracy eps defined in constants/sim_constants.h
|
||||
// isEqual(a,b) = true <=> abs(a - b) < eps
|
||||
bool isEqual(double a, double b) {
|
||||
return std::abs(a - b) < SimConstants::compare_epsilon;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user