1al_fixsin(3)                                                      al_fixsin(3)
2
3
4

NAME

6       al_fixsin - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              al_fixed al_fixsin(al_fixed x);
12

DESCRIPTION

14       This  function  finds  the  sine  of a value using a lookup table.  The
15       input value must be a fixed point binary angle.
16
17       Example:
18
19              al_fixed angle;
20              int result;
21
22              /* Set the binary angle to 90 degrees. */
23              angle = al_itofix(64);
24
25              /* The sine of 90 degrees is one. */
26              result = al_fixtoi(al_fixsin(angle));
27              assert(result == 1);
28

RETURN VALUE

30       Returns the sine of a fixed point binary format angle as a fixed  point
31       value.
32
33
34
35Allegro reference manual                                          al_fixsin(3)
Impressum