Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <utils/fx16_8.hpp>
- const fx16_8 fx_epsilon = 1.0/256; // = 1/256
- const fx16_8 fx_1third = 1.0/3; // = 1/3
- const fx16_8 fx_2thirds = 2.0/3; // = 2/3
- const fx16_8 fx_half = 1.0/2; // = 1/2
- const fx16_8 fx_sqrt2 = 1.4142135624; // = sqrt(2)
- const fx16_8 fx_invpi = 1.0/3.1415926536; // = 1/pi
- const fx16_8 fx_pi4 = 0.7853981634; // = pi/4
- const fx16_8 fx_pi2 = 1.5707963268; // = pi/2
- const fx16_8 fx_pi = 3.1415926536; // = pi
- const fx16_8 fx_2pi = 6.2831853072; // = pi*2
- const fx16_8 fx_pi_180 = 3.1415926536/180; // = pi/180
- const fx16_8 fx_180_pi = 180.0/3.1415926536; // = 180/pi
- const fx16_8 fx_invpi_180 = 1.0/(3.1415926536/180); // = 1/(pi/180)
- const fx16_8 fx_inv180_pi = 1.0/(180.0/3.1415926536); // = 1/(180/pi)
- const Sint16 _fx16_8_sin_table[1608] = { // pi2.v = 1608
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement