57    float from_01f(
float lower_bound, 
float upper_bound, 
float value);
 
   70        if constexpr (std::is_unsigned<T>::value)
 
   75        return static_cast<T>(
r);
 
 
  100    template <
typename T, 
typename F>
 
  107    template <
typename T>
 
  116    template <
typename T>
 
  133    template <
typename T>
 
#define ASSERTX(x,...)
Assert that a value is true.
 
#define ASSERT(x)
Assert that a value is true.
 
constexpr R< float > r01
A range going from 0 to 1.
 
float from_01f(float lower_bound, float upper_bound, float value)
 
T get360_angular(const R< T > &range, float value)
 
T keep_within(const R< T > &range, T value)
Returns a value that is kept within the range.
 
bool is_within(const R< T > &range, T value)
Returns true if a value is withing a range.
 
T remap_to(const R< F > &from, const R< T > &to, F value)
Remaps a value from one range to another.
 
float to01(const R< T > &range, T value)
Converts a value in a range to the 0-1 range.
 
R< T > make_range(T min, T max)
Create a range from min to max (inclusive)
 
T wrap(const R< T > &range, T value)
Returns a value that wraps around the range.
 
T from_01(const R< T > &range, float value)
Converts a value in 0-1 range to a custom range.
 
constexpr float min(float lhs, float rhs)
 
constexpr float max(float lhs, float rhs)
 
constexpr float from_percent_of_360() const
 
A (inclusive) range between two values.
 
constexpr R(T min, T max)
Asserts if max is below min.