18#ifndef INCLUDED_MATHUTIL
19#define INCLUDED_MATHUTIL
21#define DEGTORAD(a) ((a) * ((float)M_PI/180.0f))
22#define RADTODEG(a) ((a) * (180.0f/(float)M_PI))
23#define SQR(x) ((x) * (x))
28 return a + (b - a) * t;
36 else if (value >= max)
44 value = Clamp<T>((value - edge0) / (edge1 - edge0), 0, 1);
45 return value * value * (3 - 2 * value);
T Sign(const T value)
Definition: MathUtil.h:49
T Interpolate(const T &a, const T &b, float t)
Definition: MathUtil.h:26
T Clamp(T value, T min, T max)
Definition: MathUtil.h:32
T SmoothStep(T edge0, T edge1, T value)
Definition: MathUtil.h:42
#define T(string_literal)
Definition: secure_crt.cpp:77