54 #define INTERP_POINTS 50
64 float quick_trig_sin(
float x);
74 float quick_trig_cos(
float x);
84 float quick_trig_acos(
float x);
94 float quick_trig_asin(
float x);
104 float quick_trig_tan(
float x);
114 float quick_trig_atan(
float x);
128 static inline float quick_trig_func(
float x,
const float func_x_min,
const float func_x_max,
float func_x_step,
const float func_y[])
133 if ( x <= func_x_min )
137 else if ( x >= func_x_max )
139 y = func_y[INTERP_POINTS - 1];
143 i = (int32_t) ((x - func_x_min) / func_x_step);
144 y = maths_interpolate(x,
145 func_x_min + i * func_x_step,
146 func_x_min + (i + 1) * func_x_step,