14inline T
Min(T p_t1, T p_t2)
16 return p_t1 < p_t2 ? p_t1 : p_t2;
27inline T
Min(T p_t1, T p_t2, T p_t3)
29 return Min(p_t1,
Min(p_t2, p_t3));
39inline T
Max(T p_t1, T p_t2)
41 return p_t1 > p_t2 ? p_t1 : p_t2;
52inline T
Max(T p_t1, T p_t2, T p_t3)
54 return Max(p_t1,
Max(p_t2, p_t3));
66 return p_t < 0 ? -p_t : p_t;
77inline void Swap(T& p_t1, T& p_t2)
96 return p_d * 3.1416F / 180.0F;
108 return p_r * 180.0F / 3.1416F;
T RToD(T p_r)
[AI] Converts radians to degrees.
T Max(T p_t1, T p_t2)
[AI] Returns the maximum of two values.
T DToR(T p_d)
[AI] Converts degrees to radians.
void Swap(T &p_t1, T &p_t2)
[AI] Swaps the values of two variables of the same type.
T Min(T p_t1, T p_t2)
[AI] Returns the minimum of two values.
T Abs(T p_t)
[AI] Returns the absolute value.