82#define sqr(x) ((x)*(x))
93#define cube(x) ((x)*(x)*(x))
100#define PI 3.14159265358979323846264338327
111#define MIN(x,y) ((x < y) ? x : y)
122#define MAX(x,y) ((x > y) ? x : y)
137#define CLAMP(x,y,z) (MIN(MAX(x,y),z))
#define f32
Alias for float (32-bit floating-point).
Definition aliases.h:55
f32 to_degrees(f32 angle)
Converts an angle from radians to degrees.
Definition math_util.c:31
f32 frsqrt(f32 number)
Computes the fast inverse square root of a given number using the "Fast Inverse Square Root" algorith...
Definition math_util.c:8
f32 float_approach(f32 *const origin, const f32 dest, const f32 factor)
Approaches a target float by a given factor.
Definition math_util.c:36
float * vec3_approach(float *origin, float *dest, const f32 factor)
Approaches a target vector by a given factor.
Definition math_util.c:41
f32 to_radians(f32 angle)
Converts an angle from degrees to radians.
Definition math_util.c:22