5#ifndef BASE_NUMERICS_RANGES_H_
6#define BASE_NUMERICS_RANGES_H_
21 static_assert(std::is_arithmetic<T>::value,
"Argument must be arithmetic");
22 return std::abs(rhs - lhs) <= tolerance;
static float max(float r, float g, float b)
static float min(float r, float g, float b)
constexpr const T & ClampToRange(const T &value, const T &min, const T &max)
constexpr bool IsApproximatelyEqual(T lhs, T rhs, T tolerance)