2#include "../Primitives.hpp"
14 T
DegToRad(T degrees) {
return (degrees * (T)
Pi()) / 180.0f; }
17 T
RadToDeg(T radians) {
return (radians * 180.0f / (T)
Pi()); }
22 return (a <= b) ? a : b;
28 return (a >= b) ? a : b;
103 template<
class T,
class AlphaType>
104 T
Lerp(T a, T b, AlphaType alpha)
106 return a + (b - a) * alpha;
T Sin(T a)
Definition MathUtil.hpp:32
T RadToDeg(T radians)
Definition MathUtil.hpp:17
T ASinDeg(T a)
Definition MathUtil.hpp:86
T ATanDeg(T a)
Definition MathUtil.hpp:98
T ACos(T a)
Definition MathUtil.hpp:74
void SetPIPrecision(int)
Definition MathUtil.cpp:11
T Lerp(T a, T b, AlphaType alpha)
Definition MathUtil.hpp:104
T TanDeg(T a)
Definition MathUtil.hpp:62
T Cos(T a)
Definition MathUtil.hpp:38
float Pi()
Definition MathUtil.cpp:5
T Tan(T a)
Definition MathUtil.hpp:44
T ATan(T a)
Definition MathUtil.hpp:80
T DegToRad(T degrees)
Definition MathUtil.hpp:14
T Max(T a, T b)
Definition MathUtil.hpp:26
T SinDeg(T a)
Definition MathUtil.hpp:50
T CosDeg(T a)
Definition MathUtil.hpp:56
T ASin(T a)
Definition MathUtil.hpp:68
T ACosDeg(T a)
Definition MathUtil.hpp:92
T Min(T a, T b)
Definition MathUtil.hpp:20