38 if (x >= 1.0F)
return 90.0F;
39 if (x <= -1.0F)
return -90.0F;
43 return (
fatan_deg(x / sqrtf(1.0F - x * x)));
52 if (x >= 1.0F)
return 0.0F;
53 if (x <= -1.0F)
return 180.0F;
57 if (x == 0.0F)
return 90.0F;
58 if (x > 0.0F)
return fatan_deg((sqrtf(1.0F - x * x) / x));
59 return 180.0F +
fatan_deg((sqrtf(1.0F - x * x) / x));
71 #define TAN15DEG 0.26794919243F // tan(15 deg) = 2 - sqrt(3)
72 #define TAN30DEG 0.57735026919F // tan(30 deg) = 1/sqrt(3)
75 ixisnegative = ixexceeds1 = ixmapped = 0;
106 if (ixmapped) fangledeg += 30.0F;
107 if (ixexceeds1) fangledeg = 90.0F - fangledeg;
108 if (ixisnegative) fangledeg = -fangledeg;
121 if (y > 0.0F)
return 90.0F;
123 if (y < 0.0F)
return -90.0F;
132 if ((x < 0.0F) && (y > 0.0F))
return (180.0F +
fatan_deg(y / x));
145 #define PADE_A 96.644395816F // theoretical Pade[3/2] value is 5/3*180/PI=95.49296
146 #define PADE_B 25.086941612F // theoretical Pade[3/2] value is 4/9*180/PI=25.46479
147 #define PADE_C 1.6867633134F // theoretical Pade[3/2] value is 5/3=1.66667
float fatan_15deg(float x)
float fatan2_deg(float y, float x)