1fixsin(3)                       Allegro manual                       fixsin(3)
2
3
4

NAME

6       fixsin  -  Fixed  point sine of binary angles. Allegro game programming
7       library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       fixed fixsin(fixed x);
14

DESCRIPTION

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

RETURN VALUE

29       Returns the sine of a fixed point binary format angle. The return value
30       will be in radians.
31
32

SEE ALSO

34       , ex12bit(3), ex3buf(3), exblend(3),  excustom(3),  exspline(3),  exup‐
35       date(3)
36
37
38
39Allegro                          version 4.4.3                       fixsin(3)
Impressum