![]() |
LArSoft
v10_06_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 448 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 455 of file geo_vectors_utils.h.
References util::abs(), and value.
Referenced by geo::vect::rounded01().