40 if (x >= 1.0F)
return 90.0F;
41 if (x <= -1.0F)
return -90.0F;
45 return (
fatan_deg(x / sqrtf(1.0F - x * x)));
54 if (x >= 1.0F)
return 0.0F;
55 if (x <= -1.0F)
return 180.0F;
59 if (x == 0.0F)
return 90.0F;
60 if (x > 0.0F)
return fatan_deg((sqrtf(1.0F - x * x) / x));
61 return 180.0F +
fatan_deg((sqrtf(1.0F - x * x) / x));
73 #define TAN15DEG 0.26794919243F // tan(15 deg) = 2 - sqrt(3)
74 #define TAN30DEG 0.57735026919F // tan(30 deg) = 1/sqrt(3)
77 ixisnegative = ixexceeds1 = ixmapped = 0;
108 if (ixmapped) fangledeg += 30.0F;
109 if (ixexceeds1) fangledeg = 90.0F - fangledeg;
110 if (ixisnegative) fangledeg = -fangledeg;
123 if (y > 0.0F)
return 90.0F;
125 if (y < 0.0F)
return -90.0F;
134 if ((x < 0.0F) && (y > 0.0F))
return (180.0F +
fatan_deg(y / x));
147 #define PADE_A 96.644395816F // theoretical Pade[3/2] value is 5/3*180/PI=95.49296
148 #define PADE_B 25.086941612F // theoretical Pade[3/2] value is 4/9*180/PI=25.46479
149 #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)