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 | ||
) |
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 416 of file geo_vectors_utils.h.