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