108 if ( x < -1 ) x = -1;
130 return (atan2(y, x));
Header file for general utilities.
double angle_set_negPI_to_PI(double angle)
Returns an angle between -PI and PI.
double bcos(double x)
Avoid non-zero values for cos(PI/2) and cos(-PI/2).
double batan2(double y, double x)
Sets small values to zero before calling atan2.
double basin(double x)
Wrapper to avoid NaN's returned from asin.
Header file for trigonometry functions.
double bsin(double x)
Avoid non-zero values for sin(PI) and sin(-PI).
double btan(double x)
Avoid non-zero values for tan(PI) and tan(-PI). ATTENTION: tan function return a bigg value for tan(P...
double bacos(double x)
Wrapper to avoid NaN's returned from acos.