Go to the documentation of this file. 1 #ifndef __GfxTL_MATHHELPER_HEADER__
2 #define __GfxTL_MATHHELPER_HEADER__
3 #ifndef _USE_MATH_DEFINES
4 #define _USE_MATH_DEFINES
10 template<
class ScalarT >
14 static inline ScalarT
Abs(ScalarT
s)
23 static inline ScalarT
Sign(ScalarT
s)
36 static inline ScalarT
Clamp(ScalarT
s, ScalarT bottom, ScalarT top)
49 static inline ScalarT
Max(ScalarT
a, ScalarT b)
58 static inline ScalarT
Min(ScalarT
a, ScalarT b)
static ScalarT Abs(ScalarT s)
static ScalarT Sign(ScalarT s)
double a(double t, double a0, double j)
static ScalarT Min(ScalarT a, ScalarT b)
static ScalarT Clamp(ScalarT s, ScalarT bottom, ScalarT top)
static ScalarT Max(ScalarT a, ScalarT b)
double s(double t, double s0, double v0, double a0, double j)