28 const float E = 2.7182818284590f;
29 const float LOG2E = 1.4426950408889f;
30 const float LOG10E = 0.4342944819032f;
31 const float LN2 = 0.6931471805599f;
32 const float LN10 = 2.3025850929940f;
33 const float PI = 3.1415926535897f;
34 const float PI_2 = 1.5707963267948f;
35 const float PI_4 = 0.7853981633974f;
39 const float SQRT2 = 1.4142135623730f;
51 return Num1 < Num2 ? Num1 : Num2;
63 return Num1 > Num2 ? Num1 : Num2;
79 return Num < Min ? Min : Num >
Max ?
Max : Num;
91 T Lerp(T Start, T End, T Current)
93 return Start + (End - Start) * Current;
102 template <
typename T>
105 return static_cast<T>(rand()) / RAND_MAX;
115 template <
typename T>
118 return Min + Rnd0<T>() * (
Max -
Min + 1);
Mathematical support include module.
T Clamp(T Num, T Min=0, T Max=1)
T Lerp(T Start, T End, T Current)