27 static constexpr
double COMP_MARGIN = std::numeric_limits<double>::epsilon() * 1e5;
32 (
double t1,
double t2) {
37 static unsigned int absUI
39 return (a>0) ? (a) : (-a);
static unsigned int absUI(int a)
An user-implemented absolute value function for integer values.
static bool isTimeBetterThan(double t1, double t2)
Returns true if t1 is at least epsilon-lower than t2, provides robust comparions for doubles...
static constexpr double COMP_MARGIN
When comparing doubles if(a < b), do if(a+COMP_MARGIN < b) to avoid double precission issues...
Provides helper code not related with specific classes. Copyright (C) 2014 Javier V...