1al_fixacos(3)              Library Functions Manual              al_fixacos(3)
2
3
4

NAME

6       al_fixacos
7

SYNOPSIS

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

DESCRIPTION

14       This function finds the inverse cosine of a value using a lookup table.
15       The input value must be a fixed point radian.  The  inverse  cosine  is
16       defined  only in the domain from –1 to 1.  Outside of this input range,
17       the function will set Allegro's errno to EDOM and return zero.
18
19       Example:
20
21                  al_fixed result;
22
23                  /* Sets result to binary angle 128. */
24                  result = al_fixacos(al_itofix(-1));
25

RETURN VALUE

27       Returns the inverse sine of a fixed  point  value,  measured  as  fixed
28       point  binary format angle, or zero if the input was out of range.  All
29       return values of this function will be in the range 0 to 128.
30
31
32
33Allegro reference manual                                         al_fixacos(3)
Impressum