60 float from_01f(
float lower_bound,
float upper_bound,
float value);
72 if constexpr (std::is_unsigned<T>::value)
77 return static_cast<T
>(r);
81 float from_01(
const Range<float>& range,
float value);
94 const float half_difference
100 template <
typename T,
typename F>
107 template <
typename T>
114 template <
typename T>
129 template <
typename T>
139 while(wrapped > diff)
T keep_within(const Range< T > &range, T value)
int c_sizet_to_int(size_t t)
float from_01f(float lower_bound, float upper_bound, float value)
float to01(const Range< T > &range, T value)
Range< T > make_range(T min, T max)
T remap_to(const Range< F > &from, const Range< T > &to, F value)
T wrap(const Range< T > &range, T value)
float from_01(const Range< float > &range, float value)
float cos(const Angle &ang)
size2f min(const size2f lhs, const size2f rhs)
constexpr Range< float > r01
bool is_within(const Range< T > &range, T value)
size2f max(const size2f lhs, const size2f rhs)
constexpr Range< float > r11
T get360_angular(const Range< T > &range, float value)
constexpr float from_percent_of_360() const
constexpr Range(T min, T max)