1al_fixtorad_r(3)                                              al_fixtorad_r(3)
2
3
4

NAME

6       al_fixtorad_r - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              const al_fixed al_fixtorad_r = (al_fixed)1608;
12

DESCRIPTION

14       This  constant gives a ratio which can be used to convert a fixed point
15       number in binary angle format to a fixed point number in radians.
16
17       Example:
18
19              al_fixed rad_angle, binary_angle;
20
21              /* Set the binary angle to 90 degrees. */
22              binary_angle = 64;
23
24              /* Now convert to radians (about 1.57). */
25              rad_angle = al_fixmul(binary_angle, al_fixtorad_r);
26

SEE ALSO

28       al_fixmul(3), al_radtofix_r(3).
29
30
31
32Allegro reference manual                                      al_fixtorad_r(3)
Impressum