1radtofix_r(3) Allegro manual radtofix_r(3)
2
3
4
6 radtofix_r - Constant to convert radians to fixed point angles. Allegro
7 game programming library.
8
10 #include <allegro.h>
11
12
13 extern const fixed radtofix_r;
14
16 This constant gives a ratio which can be used to convert a fixed point
17 number in radians to a fixed point number in binary angle format. Exam‐
18 ple:
19
20 fixed rad_angle, binary_angle;
21 ...
22 binary_angle = fixmul(rad_angle, radtofix_r);
23
24
26 fixmul(3), fixtorad_r(3)
27
28
29
30Allegro version 4.2.2 radtofix_r(3)