IsBetween


Check whether argument is between min and max.

You can find more information in comments below.

template<class TYPE>
constexpr bool IsBetween(const TYPE a, const TYPE min, const TYPE max); // Check whether argument is between min and max
template<class TYPE>
constexpr bool IsBetween(const TYPE a, const TYPE min, const TYPE max, const TYPE tolerance = Tolerance<TYPE>); // Check whether argument is between min and max. For float values. Uses absolute comparison
Namespace: ntl
Include: NTL/Core/Utils.h