#include <algorithm>
#include <cmath>
#include <limits>
Go to the source code of this file.
|
template<typename T > |
bool | autoware::common::helper_functions::comparisons::abs_eq (const T &a, const T &b, const T &eps) |
| Check for approximate equality in absolute terms. More...
|
|
template<typename T > |
bool | autoware::common::helper_functions::comparisons::abs_lt (const T &a, const T &b, const T &eps) |
| Check for approximate less than in absolute terms. More...
|
|
template<typename T > |
bool | autoware::common::helper_functions::comparisons::abs_lte (const T &a, const T &b, const T &eps) |
| Check for approximate less than or equal in absolute terms. More...
|
|
template<typename T > |
bool | autoware::common::helper_functions::comparisons::abs_gte (const T &a, const T &b, const T &eps) |
| Check for approximate greater than or equal in absolute terms. More...
|
|
template<typename T > |
bool | autoware::common::helper_functions::comparisons::abs_gt (const T &a, const T &b, const T &eps) |
| Check for approximate greater than in absolute terms. More...
|
|
template<typename T > |
bool | autoware::common::helper_functions::comparisons::abs_eq_zero (const T &a, const T &eps) |
| Check whether a value is within epsilon of zero. More...
|
|
template<typename T > |
bool | autoware::common::helper_functions::comparisons::rel_eq (const T &a, const T &b, const T &rel_eps) |
| https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ More...
|
|
template<typename T > |
bool | autoware::common::helper_functions::comparisons::approx_eq (const T &a, const T &b, const T &abs_eps, const T &rel_eps) |
| Check for approximate equality in absolute and relative terms. More...
|
|