float sqrtf_safe(const T val)
Compute safe square root of a value.
Definition: math_functs.cpp:91
float asinf_safe(const T val)
Take the arcsine of a number with safety checks.
Definition: math_functs.cpp:115
float InvSqrtf(float num)
Extra math functions such as fast square root, 'safe' trig.
Definition: math_functs.cpp:27
T RangeConstrain(const T val, const T lower, const T upper)
Templates to constrain a value to a certain range.
Definition: math_functs.cpp:56