Autoware.Auto
float_comparisons.hpp File Reference
#include <algorithm>
#include <cmath>
#include <limits>
Include dependency graph for float_comparisons.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 autoware
 This file defines the lanelet2_map_provider_node class.
 
 autoware::common
 
 autoware::common::helper_functions
 
 autoware::common::helper_functions::comparisons
 

Functions

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...