Voltray Engine Docs
Loading...
Searching...
No Matches
MathUtil.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  MathUtil
 

Macros

#define M_PI   3.141592653589793238467932384626433f
 
#define M_PI_2   1.570796326794896619231321691639751f
 
#define DEG2RAD   0.01745329251994329576923690768489f
 
#define RAD2DEG   57.295779513082320876798154814105f
 

Functions

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

Macro Definition Documentation

◆ DEG2RAD

#define DEG2RAD   0.01745329251994329576923690768489f

◆ M_PI

#define M_PI   3.141592653589793238467932384626433f

◆ M_PI_2

#define M_PI_2   1.570796326794896619231321691639751f

◆ RAD2DEG

#define RAD2DEG   57.295779513082320876798154814105f