const float PI
const float TWO_PI
const float PI_HALVED
const float INFINITY_POS
const float INFINITY_NEG
inline float ToRad(float degrees)
Transforms a degree into a radian.
inline float ToDeg(float radians)
Transforms a radian into a degree.
inline bool NearZero(float val, float epsilon = 0.001f)
Returns if a float is nearly equals to 0.
template<typename T>
T Max(const T& a, const T& b)
Returns the max value between 2.
template<typename T>
T Min(const T& a, const T& b)
Returns the min value between 2.
template<typename T>
T Clamp(const T& val, const T& lower, const T& upper)
Clamp a value between a min and a max.
inline float Abs(float val)
Returns the absolute of a float.
inline float Cos(float angle)
Returns the cosine of a radian.
inline float Sin(float angle)
Returns the sine of a radian.
inline float Tan(float angle)
Returns the tan of a radian.
inline float ACos(float angle)
Returns the arccosine.
inline float ATan2(float opposite, float adjacent)
Returns the arctan2 from an opposite and an adjacent.
inline float Cot(float angle)
Returns the Cot of a radian.
inline float Lerp(float a, float b, float t)
Returns a float between 2 value depending on time.
inline float Sqrt(float val)
Returns the sqrt of a value.
inline float Fmod(float numer, float denom)
Returns the floating-point remainder of the division x / y.
inline int Round(float val)
Rounds a value
inline void InitRandom()
Initialize the random generator.
Automatically called the first time you call RandomRange();
inline float RandomRange(float min, float max)
Returns a random float.
Max included.
inline int RandomRange(int min, int max)
Returns a random int.
Max included.