Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
Misc.h File Reference
#include <pongasoft/logging/logging.h>

Go to the source code of this file.

Namespaces

namespace  pongasoft
namespace  pongasoft::Utils

Functions

template<typename T, typename U>
static T clamp (const U &iValue, const T &iLower, const T &iUpper)
 Make sure that the value remains within its bounds.
template<typename T, typename U>
static T clampE (const U &value, const T &lower, const T &upper)
 Same as clamp except it will actually fail/assert in debug mode.
template<typename T, typename U>
static T clampRange (const U &iValue, const T &iFrom, const T &iTo)
 Make sure that the value remains within its bounds.