LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Convenience utilities not directly related to vectors. More...
Functions | |
template<typename T > | |
constexpr T | roundValue0 (T value, T tol) |
Returns value , rounded to 0 if closer than tol . More... | |
template<typename T > | |
constexpr T | roundValue01 (T value, T tol) |
Returns value , rounded to 0, -1 or +1 if closer than tol . More... | |
Convenience utilities not directly related to vectors.
constexpr T geo::vect::extra::roundValue0 | ( | T | value, |
T | tol | ||
) |
Returns value
, rounded to 0 if closer than tol
.
Definition at line 450 of file geo_vectors_utils.h.
References util::abs(), and value.
Referenced by geo::vect::rounded0().
constexpr T geo::vect::extra::roundValue01 | ( | T | value, |
T | tol | ||
) |
Returns value
, rounded to 0, -1 or +1 if closer than tol
.
Definition at line 457 of file geo_vectors_utils.h.
References util::abs(), and value.
Referenced by geo::vect::rounded01().