Voltray Engine Docs
Loading...
Searching...
No Matches
MathUtil Namespace Reference

Functions

template<typename T >
Clamp (const T &value, const T &min, const T &max)
 
template<typename T >
Lerp (const T &a, const T &b, float t)
 
template<typename T >
Map (const T &value, const T &inMin, const T &inMax, const T &outMin, const T &outMax)
 
template<typename T >
int Sign (const T &value)
 

Function Documentation

◆ Clamp()

template<typename T >
T MathUtil::Clamp ( const T &  value,
const T &  min,
const T &  max 
)

◆ Lerp()

template<typename T >
T MathUtil::Lerp ( const T &  a,
const T &  b,
float  t 
)

◆ Map()

template<typename T >
T MathUtil::Map ( const T &  value,
const T &  inMin,
const T &  inMax,
const T &  outMin,
const T &  outMax 
)

◆ Sign()

template<typename T >
int MathUtil::Sign ( const T &  value)