39template<
typename Type,
size_t N>
54 return std::fabs(a - b) <= tolerance;
67 return a >= min && a <= max;
constexpr size_t num_elements_in_array(Type(&)[N]) noexcept
Returns the number of elements in a c-style array.
bool is_between(T a, T min, T max)
Tests if a value is between two other values, inclusive.
bool is_within(T a, T b, T tolerance)
Tests if two values are within a certain tolerance of each other.